@@ -143,7 +143,7 @@ type __Type {
143
143
enumValues (includeDeprecated : Boolean = false ): [__EnumValue ! ]
144
144
145
145
# should be non-null for INPUT_OBJECT only, must be null for the others
146
- inputFields : [__InputValue ! ]
146
+ inputFields ( includeDeprecated : Boolean = false ) : [__InputValue ! ]
147
147
148
148
# should be non-null for NON_NULL and LIST only, must be null for the others
149
149
ofType : __Type
@@ -152,7 +152,7 @@ type __Type {
152
152
type __Field {
153
153
name : String !
154
154
description : String
155
- args : [__InputValue ! ]!
155
+ args ( includeDeprecated : Boolean = false ) : [__InputValue ! ]!
156
156
type : __Type !
157
157
isDeprecated : Boolean !
158
158
deprecationReason : String
@@ -163,6 +163,8 @@ type __InputValue {
163
163
description : String
164
164
type : __Type !
165
165
defaultValue : String
166
+ isDeprecated : Boolean !
167
+ deprecationReason : String
166
168
}
167
169
168
170
type __EnumValue {
@@ -336,6 +338,8 @@ Fields
336
338
* `name ` must return a String .
337
339
* `description ` may return a String or {null }.
338
340
* `inputFields `: a list of `InputValue `.
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
@@ -375,6 +379,8 @@ Fields
375
379
* `description ` may return a String or {null }
376
380
* `args ` returns a List of `__InputValue ` representing the arguments this
377
381
field accepts .
382
+ * Accepts the argument `includeDeprecated ` which defaults to {false }. If
383
+ {true }, deprecated arguments are also returned .
378
384
* `type ` must return a `__Type ` that represents the type of value returned by
379
385
this field .
380
386
* `isDeprecated ` returns {true } if this field should no longer be used ,
@@ -396,6 +402,9 @@ Fields
396
402
* `defaultValue ` may return a String encoding (using the GraphQL language) of the
397
403
default value used by this input value in the condition a value is not
398
404
provided at runtime . If this input value has no default value , returns {null }.
405
+ * `isDeprecated ` returns {true } if this field or argument should no longer be used ,
406
+ otherwise {false }.
407
+ * `deprecationReason ` optionally provides a reason why this input field or argument is deprecated .
399
408
400
409
### The __EnumValue Type
401
410
@@ -421,5 +430,7 @@ Fields
421
430
locations this directive may be placed .
422
431
* `args ` returns a List of `__InputValue ` representing the arguments this
423
432
directive accepts .
433
+ * Accepts the argument `includeDeprecated ` which defaults to {false }. If
434
+ {true }, deprecated arguments are also returned .
424
435
* `isRepeatable ` must return a Boolean that indicates if the directive may be
425
436
used repeatedly at a single location .
0 commit comments