Skip to content
New issue

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

Enhanced codegen config add maybeValue option #405

Closed
lorenzofaresin opened this issue Oct 26, 2023 · 0 comments
Closed

Enhanced codegen config add maybeValue option #405

lorenzofaresin opened this issue Oct 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@lorenzofaresin
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant