Skip to content

Commit 39caf61

Browse files
authored
Clarify that __typename may be queried on unions (#756)
1 parent 657bc69 commit 39caf61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/Section 3 -- Type System.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,8 @@ With interfaces and objects, only those fields defined on the type can be
12421242
queried directly; to query other fields on an interface, typed fragments
12431243
must be used. This is the same as for unions, but unions do not define any
12441244
fields, so **no** fields may be queried on this type without the use of
1245-
type refining fragments or inline fragments.
1245+
type refining fragments or inline fragments (with the exception of the
1246+
meta-field {__typename}).
12461247

12471248
For example, we might define the following types:
12481249

0 commit comments

Comments
 (0)