Skip to content

Allow configuration of zod optional/null type #308

Open
@peniqliotuv

Description

@peniqliotuv

I'd love to use this library but since we redefine inputMaybeValue: 'T | undefined' in the graphql-codegen configuration, it's incompatible with the .nullish() that gets added to the zod schema when using graphql-codegen-tyespcript-validation-schema.

It would be great if we could have a configuration such as zodOptionalType that allowed us to specify optional or nullish.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions