I see that union types (<https://graphql.org/learn...
# orm-help
r
I see that union types (https://graphql.org/learn/schema/#union-types) allow us to return a list of certain types for a given field, though on the client side, if we'd like to know what type we finally got, we'd need to check for the existence of certain properties of the JSON encoded object. Question is: Is there a more elegant way to determine the returned type?
a
I think you can query for
__typename
👍 3