You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Field description is nullable from graphql perspective. Not from the typescript. If you will make ts field optional by 'question mark' modifier this field will be treated as possible undefined. But prisma doesnt return undefined for optional field if it is selected. It returns null.
I saw prisma discussions about this, people want receive undefined instead of null, but idk the result...
Hey guys,
I have seen issue #41 but I have a different case, I have an optional field defined in my model:
And it is generating the following model for it:
I am running into the same issue in my code. Do you think I am missing something? Here is my repo: https://github.com/kasir-barati/graphql/tree/main/apps/botprobe-nest
To reproduce:
pnpm i
.nx prisma-generate botprobe-nest
.apps/botprobe-nest/src/@generated/alert/alert.model
.Anything I can do to make it optional like what happens to the relation fields?
The text was updated successfully, but these errors were encountered: