@@ -145,7 +145,7 @@ type __Type {
145
145
# must be non-null for ENUM, otherwise null.
146
146
enumValues (includeDeprecated : Boolean = false ): [__EnumValue ! ]
147
147
# must be non-null for INPUT_OBJECT, otherwise null.
148
- inputFields : [__InputValue ! ]
148
+ inputFields ( includeDeprecated : Boolean = false ) : [__InputValue ! ]
149
149
# must be non-null for NON_NULL and LIST, otherwise null.
150
150
ofType : __Type
151
151
# may be non-null for custom SCALAR, otherwise null.
@@ -166,7 +166,7 @@ enum __TypeKind {
166
166
type __Field {
167
167
name : String !
168
168
description : String
169
- args : [__InputValue ! ]!
169
+ args ( includeDeprecated : Boolean = false ) : [__InputValue ! ]!
170
170
type : __Type !
171
171
isDeprecated : Boolean !
172
172
deprecationReason : String
@@ -177,6 +177,8 @@ type __InputValue {
177
177
description : String
178
178
type : __Type !
179
179
defaultValue : String
180
+ isDeprecated : Boolean !
181
+ deprecationReason : String
180
182
}
181
183
182
184
type __EnumValue {
@@ -367,6 +369,8 @@ Fields\:
367
369
- `name ` must return a String .
368
370
- `description ` may return a String or {null }.
369
371
- `inputFields ` must return the set of input fields as a list of `__InputValue `.
372
+ - Accepts the argument `includeDeprecated ` which defaults to {false }. If
373
+ {true }, deprecated fields are also returned .
370
374
- All other fields must return {null }.
371
375
372
376
**List **
@@ -412,6 +416,8 @@ Fields\:
412
416
- `description ` may return a String or {null }
413
417
- `args ` returns a List of `__InputValue ` representing the arguments this field
414
418
accepts .
419
+ - Accepts the argument `includeDeprecated ` which defaults to {false }. If
420
+ {true }, deprecated arguments are also returned .
415
421
- `type ` must return a `__Type ` that represents the type of value returned by
416
422
this field .
417
423
- `isDeprecated ` returns {true } if this field should no longer be used ,
@@ -432,6 +438,10 @@ Fields\:
432
438
- `defaultValue ` may return a String encoding (using the GraphQL language) of
433
439
the default value used by this input value in the condition a value is not
434
440
provided at runtime . If this input value has no default value , returns {null }.
441
+ - `isDeprecated ` returns {true } if this field or argument should no longer be
442
+ used , otherwise {false }.
443
+ - `deprecationReason ` optionally provides a reason why this input field or
444
+ argument is deprecated .
435
445
436
446
### The \_\_EnumValue Type
437
447
@@ -483,5 +493,7 @@ Fields\:
483
493
locations this directive may be placed .
484
494
- `args ` returns a List of `__InputValue ` representing the arguments this
485
495
directive accepts .
496
+ - Accepts the argument `includeDeprecated ` which defaults to {false }. If
497
+ {true }, deprecated arguments are also returned .
486
498
- `isRepeatable ` must return a Boolean that indicates if the directive may be
487
499
used repeatedly at a single location .
0 commit comments