-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow configuration of zod optional/null type #308
Comments
@peniqliotuv Hi 👋 I'm sorry to delay this reply. Could you tell me how to do this?
|
Hey @Code-Hex ! No worries.
This value would default to The behavior of
Providing
Providing
I omitted the |
I think instead of providing Also to provide undefined, one needs to write |
I'm also having this issue, my current workaround is to run |
I'd love to use this library but since we redefine
inputMaybeValue: 'T | undefined'
in thegraphql-codegen
configuration, it's incompatible with the.nullish()
that gets added to the zod schema when usinggraphql-codegen-tyespcript-validation-schema
.It would be great if we could have a configuration such as
zodOptionalType
that allowed us to specifyoptional
ornullish
.The text was updated successfully, but these errors were encountered: