Could optional types be more specific? #275
Unanswered
some-user123
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm under the impression that generated types are to broad and as specific as they could be.
As an example, I'm having in a graphql schema like this:
If I query this entity, the generated type is:
From my (limited) understanding of GraphQL that could be
because the field was requested, so it has to be contained in the answer...
Under which condition would that field be
undefined
?Beta Was this translation helpful? Give feedback.
All reactions