Exclude some fields like createdAt for CreateInputSchema #146
-
Is there a way to exclude some fields for *CreateInputSchema? |
Beta Was this translation helpful? Give feedback.
Answered by
chrishoermann
May 24, 2023
Replies: 1 comment 1 reply
-
Hey @Extarys, did you try to use createdAt Date /// zod.custom.omit([input]) as stated in the docs? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Extarys
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @Extarys, did you try to use
createdAt Date /// zod.custom.omit([input])
as stated in the docs?