Skip to content

Commit

Permalink
Clarify that __typename may be queried on unions (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
glasser authored Sep 3, 2020
1 parent 657bc69 commit 39caf61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/Section 3 -- Type System.md
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,8 @@ With interfaces and objects, only those fields defined on the type can be
queried directly; to query other fields on an interface, typed fragments
must be used. This is the same as for unions, but unions do not define any
fields, so **no** fields may be queried on this type without the use of
type refining fragments or inline fragments.
type refining fragments or inline fragments (with the exception of the
meta-field {__typename}).

For example, we might define the following types:

Expand Down

0 comments on commit 39caf61

Please sign in to comment.