@@ -109,9 +109,9 @@ CommonMark-compliant Markdown renderer.
109
109
** Deprecation**
110
110
111
111
To support the management of backwards compatibility, GraphQL fields, arguments,
112
- input fields, enum values, and objects can indicate whether or not they are deprecated
113
- (` isDeprecated: Boolean ` ) along with a description of why it is deprecated
114
- (` deprecationReason: String ` ).
112
+ input fields, enum values, and objects can indicate whether or not they are
113
+ deprecated (` isDeprecated: Boolean ` ) along with a description of why it is
114
+ deprecated (` deprecationReason: String ` ).
115
115
116
116
Tools built using GraphQL introspection should respect deprecation by
117
117
discouraging deprecated use through information hiding or developer-facing
@@ -142,7 +142,7 @@ type __Type {
142
142
# must be non-null for OBJECT and INTERFACE, otherwise null.
143
143
interfaces : [__Type ! ]
144
144
# must be non-null for INTERFACE and UNION, otherwise null.
145
- possibleTypes : [__Type ! ]
145
+ possibleTypes ( includeDeprecated : Boolean = false ) : [__Type ! ]
146
146
# must be non-null for ENUM, otherwise null.
147
147
enumValues (includeDeprecated : Boolean = false ): [__EnumValue ! ]
148
148
# must be non-null for INPUT_OBJECT, otherwise null.
@@ -315,6 +315,8 @@ Fields\:
315
315
- ` description ` may return a String or {null}.
316
316
- ` possibleTypes ` returns the list of types that can be represented within this
317
317
union. They must be object types.
318
+ - Accepts the argument ` includeDeprecated ` which defaults to {false}. If
319
+ {true}, deprecated fields are also returned.
318
320
- All other fields must return {null}.
319
321
320
322
** Interface**
@@ -336,6 +338,8 @@ Fields\:
336
338
(if none, ` interfaces ` must return the empty set).
337
339
- ` possibleTypes ` returns the list of types that implement this interface. They
338
340
must be object types.
341
+ - Accepts the argument ` includeDeprecated ` which defaults to {false}. If
342
+ {true}, deprecated fields are also returned.
339
343
- All other fields must return {null}.
340
344
341
345
** Enum**
0 commit comments