@@ -89,14 +89,17 @@ warnings.
89
89
90
90
## Type Name Introspection
91
91
92
- GraphQL supports type name introspection at any point within a query by the
93
- meta-field ` __typename: String! ` when querying against any Object, Interface,
94
- or Union. It returns the name of the object type currently being queried.
92
+ GraphQL supports type name introspection within any selection set in an
93
+ operation, with the single exception of selections at the root of a subscription
94
+ operation. Type name introspection is accomplished via the meta-field
95
+ ` __typename: String! ` on any Object, Interface, or Union. It returns the name of
96
+ the concrete Object type at that point during execution.
95
97
96
98
This is most often used when querying against Interface or Union types to
97
- identify which actual type of the possible types has been returned.
99
+ identify which actual Object type of the possible types has been returned.
98
100
99
- This field is implicit and does not appear in the fields list in any defined type.
101
+ As a meta-field, ` __typename ` is implicit and does not appear in the fields list
102
+ in any defined type.
100
103
101
104
102
105
## Schema Introspection
@@ -110,8 +113,8 @@ __schema: __Schema!
110
113
__type (name : String ! ): __Type
111
114
```
112
115
113
- These fields are implicit and do not appear in the fields list in the root type
114
- of the query operation.
116
+ Like all meta- fields, these are implicit and do not appear in the fields list in
117
+ the root type of the query operation.
115
118
116
119
The schema of the GraphQL schema introspection system:
117
120
0 commit comments