Enhanced codegen config add maybeValue option
lorenzofaresin opened this issue · 0 comments
lorenzofaresin commented
Your use case
We need to use code generation with key?: T
instead key: T | null
because when we define gql query without some property we expect that the undefined property doesn't exists. That's different from exists with null value
The solution you'd like
edit generate.ts
adding maybeValue: string with 'T | null' default
on const codegenConfig {}
Possible alternatives
No response
Additional information
No response