Skip to content

Allowing field to be undefined but not null #5358

Answered by ardatan
jdc18 asked this question in Q&A
Discussion options

You must be logged in to vote

@jdc18 You can change maybeValue in configuration;
https://graphql-code-generator.com/docs/plugins/typescript
By default it is T | null so you can change it to T only.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jdc18
Comment options

@dotansimha
Comment options

Answer selected by dotansimha
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants