We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Hello, thanks for this codegen plugin! However, I seem to have a problem with zod:
Given the GraphQL Schema e.g.:
input AppointmentInput { description: String ...
(Optional String description)
The generated Schema is:
export function AppointmentInputSchema(): z.ZodObject<Properties<AppointmentInput>> { return z.object({ description: z.string().nullish(),
this is giving me an error saying:
Type 'undefined' is not assignable to type 'InputMaybe'
The error goes away if I manually change it to:
... description: z.string().nullable(), ...
( nullable instead of nullish)
My config is:
config: { importFrom: "./schema", withObjectType: true, useTypeImports: true, schema: "zod", strictScalars: true, }
Using: "graphql-codegen-typescript-validation-schema": "^0.17.1" "zod": "^3.24.4"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Hello, thanks for this codegen plugin!
However, I seem to have a problem with zod:
Given the GraphQL Schema e.g.:
(Optional String description)
The generated Schema is:
this is giving me an error saying:
Type 'undefined' is not assignable to type 'InputMaybe'
The error goes away if I manually change it to:
( nullable instead of nullish)
My config is:
Using:
"graphql-codegen-typescript-validation-schema": "^0.17.1"
"zod": "^3.24.4"
The text was updated successfully, but these errors were encountered: