You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plugin isn't applying the constraints from the GraphQL input definition to the generated zod schema. Based on what I can tell from the codebase, everything seems to be configured correctly. Am I missing something here?
I did some digging and the issues was on my side. I was pointing codegen to the api schema rather than the actual schema file, ie. localhost:4000/graphql instead of ./src/graphql/api/partner/schema/index.ts. Since the directives get stripped from the server response, there was no way for the validation schema to be properly generated.
In case anyone runs into this, my complete working config looks like this:
The plugin isn't applying the constraints from the GraphQL input definition to the generated zod schema. Based on what I can tell from the codebase, everything seems to be configured correctly. Am I missing something here?
Current config definitions:
Directive definition:
Directive used as:
Codegen output:
The text was updated successfully, but these errors were encountered: