Concept Flow - Union types
Query requests a Union field
GraphQL server checks the actual type
Matches one of the Union member types
Returns data shaped as that member type
Client reads data with __typename to identify type
A GraphQL query asks for a field that can be one of several types. The server figures out which type it is and returns data accordingly. The client uses __typename to know the actual type.