mercurius-js / mercurius-typescript

TypeScript usage examples and "mercurius-codegen" for Mercurius

Home Page:https://mercurius.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optional fields for non-nullable types

nonua opened this issue · comments

commented

Hi,

I am using your plugin to generate the adequate typings for an app I am building and I would like to know if there is a way not to have optionals fields for values I specifically mark as non-nullable in the schema? It seems like avoidOptionals does not seem to work .

Schema:
Code_7hhxyv1BtA
Intellisense:
Code_6ulv67fOpC

Thank you!