tAre there any conditions where the client would b...
# prisma-client
c
tAre there any conditions where the client would be missing Are there any conditions where the client would refuse to make the create/createMany and upsert functions? I’m noticing they’re missing from my schema for one model.
r
@Casey Chow 👋 There's a case if you have either
@ignore
or
@@ignore
in your fields or model it could be missing.
c
Ah gotcha.
That’s kinda weird/interesting haha
Oh I see the issue. I ignored a required field, which Prisma took to mean I shouldn’t be able to enable. However, I ignored them because I have a trigger that sets them, but seems like there’s no way to tell the generator that?
r
I don’t think so, keeping the field optional
field String?
is the only way I can think of as of now.