zod-prisma-types
zod-prisma-types copied to clipboard
Possible to omit only in CreateInputSchema but not UpdateInputSchema
I have a use case where I wanted only to omit Id in CreateInputSchema but not UpdateInputSchemam but if I put /// @zod.custom.omit([input]). It will omit in both CreateInputSchema and UpdateInputSchema.
@NanFengCheong Currently it is only possible to omit the fields in all input types
. A similar request was made in #97. I'll think about how this could be implemented and see when I find some free time to work on it.