Replies: 1 comment 6 replies
-
|
add this to your config |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I have a union type that I discriminate by the
__typenameproperty. The problem I’m seeing is that in the generated types for my query where I fetch__typenamefrom the union type,__typenameis optional. It shouldn’t be optional in the return type since I’m expressly getting it through my query:Results in a return type with
__typenameas optional, even though I’m specifically requesting it.So how do I make the
__typenames not optional (i.e., required)?Beta Was this translation helpful? Give feedback.
All reactions