Replies: 1 comment
-
|
Currently it's recommended to explicitly add the model fields to your zod schema. This is a bit of extra work, but it's almost always the right choice in the end for security. Because otherwise it would be too easy to add a sensitive field in prisma schema, like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I try to get typesof model from prisma like Prisma.ModelGetPayload but don't working.
Do you have one solution ? for don't rewrite all model types in zod object.
exemple
Thank you
Beta Was this translation helpful? Give feedback.
All reactions