@@ -148,7 +148,7 @@ type __Type {
148
148
enumValues (includeDeprecated : Boolean = false ): [__EnumValue ! ]
149
149
150
150
# should be non-null for INPUT_OBJECT only, must be null for the others
151
- inputFields : [__InputValue ! ]
151
+ inputFields ( includeDeprecated : Boolean = false ) : [__InputValue ! ]
152
152
153
153
# should be non-null for NON_NULL and LIST only, must be null for the others
154
154
ofType : __Type
@@ -160,7 +160,7 @@ type __Type {
160
160
type __Field {
161
161
name : String !
162
162
description : String
163
- args : [__InputValue ! ]!
163
+ args ( includeDeprecated : Boolean = false ) : [__InputValue ! ]!
164
164
type : __Type !
165
165
isDeprecated : Boolean !
166
166
deprecationReason : String
@@ -171,6 +171,8 @@ type __InputValue {
171
171
description : String
172
172
type : __Type !
173
173
defaultValue : String
174
+ isDeprecated : Boolean !
175
+ deprecationReason : String
174
176
}
175
177
176
178
type __EnumValue {
@@ -347,6 +349,8 @@ Fields
347
349
* `name ` must return a String .
348
350
* `description ` may return a String or {null }.
349
351
* `inputFields `: a list of `InputValue `.
352
+ * Accepts the argument `includeDeprecated ` which defaults to {false }. If
353
+ {true }, deprecated fields are also returned .
350
354
* All other fields must return {null }.
351
355
352
356
@@ -393,6 +397,8 @@ Fields
393
397
* `description ` may return a String or {null }
394
398
* `args ` returns a List of `__InputValue ` representing the arguments this
395
399
field accepts .
400
+ * Accepts the argument `includeDeprecated ` which defaults to {false }. If
401
+ {true }, deprecated arguments are also returned .
396
402
* `type ` must return a `__Type ` that represents the type of value returned by
397
403
this field .
398
404
* `isDeprecated ` returns {true } if this field should no longer be used ,
@@ -414,6 +420,9 @@ Fields
414
420
* `defaultValue ` may return a String encoding (using the GraphQL language) of the
415
421
default value used by this input value in the condition a value is not
416
422
provided at runtime . If this input value has no default value , returns {null }.
423
+ * `isDeprecated ` returns {true } if this field or argument should no longer be used ,
424
+ otherwise {false }.
425
+ * `deprecationReason ` optionally provides a reason why this input field or argument is deprecated .
417
426
418
427
### The __EnumValue Type
419
428
@@ -439,5 +448,7 @@ Fields
439
448
locations this directive may be placed .
440
449
* `args ` returns a List of `__InputValue ` representing the arguments this
441
450
directive accepts .
451
+ * Accepts the argument `includeDeprecated ` which defaults to {false }. If
452
+ {true }, deprecated arguments are also returned .
442
453
* `isRepeatable ` must return a Boolean that indicates if the directive may be
443
454
used repeatedly at a single location .
0 commit comments