Code-Hex / graphql-codegen-typescript-validation-schema

GraphQL Code Generator plugin to generate form validation schema from your GraphQL schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[QUESTION]: nonOptionalTypename: supported?

smakinson opened this issue · comments

Hi, Is it expected that using:

config: {
   ...
   nonOptionalTypename: true,
   schema: 'zod',
}

should prevent .optional() from being applied to __typename? It does not seem to do this when giving it a try.

@smakinson Could you give me more context because I'm not sure why don't you need __typename?