@@ -148,7 +148,7 @@ type __Type {
148148 enumValues (includeDeprecated : Boolean = false ): [__EnumValue ! ]
149149
150150 # should be non-null for INPUT_OBJECT only, must be null for the others
151- inputFields : [__InputValue ! ]
151+ inputFields ( includeDeprecated : Boolean = false ) : [__InputValue ! ]
152152
153153 # should be non-null for NON_NULL and LIST only, must be null for the others
154154 ofType : __Type
@@ -160,7 +160,7 @@ type __Type {
160160type __Field {
161161 name : String !
162162 description : String
163- args : [__InputValue ! ]!
163+ args ( includeDeprecated : Boolean = false ) : [__InputValue ! ]!
164164 type : __Type !
165165 isDeprecated : Boolean !
166166 deprecationReason : String
@@ -171,6 +171,8 @@ type __InputValue {
171171 description : String
172172 type : __Type !
173173 defaultValue : String
174+ isDeprecated : Boolean !
175+ deprecationReason : String
174176}
175177
176178type __EnumValue {
@@ -347,6 +349,8 @@ Fields
347349* `name ` must return a String .
348350* `description ` may return a String or {null }.
349351* `inputFields `: a list of `InputValue `.
352+ * Accepts the argument `includeDeprecated ` which defaults to {false }. If
353+ {true }, deprecated fields are also returned .
350354* All other fields must return {null }.
351355
352356
@@ -393,6 +397,8 @@ Fields
393397* `description ` may return a String or {null }
394398* `args ` returns a List of `__InputValue ` representing the arguments this
395399 field accepts .
400+ * Accepts the argument `includeDeprecated ` which defaults to {false }. If
401+ {true }, deprecated arguments are also returned .
396402* `type ` must return a `__Type ` that represents the type of value returned by
397403 this field .
398404* `isDeprecated ` returns {true } if this field should no longer be used ,
@@ -414,6 +420,9 @@ Fields
414420* `defaultValue ` may return a String encoding (using the GraphQL language) of the
415421 default value used by this input value in the condition a value is not
416422 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 .
417426
418427### The __EnumValue Type
419428
@@ -439,5 +448,7 @@ Fields
439448 locations this directive may be placed .
440449* `args ` returns a List of `__InputValue ` representing the arguments this
441450 directive accepts .
451+ * Accepts the argument `includeDeprecated ` which defaults to {false }. If
452+ {true }, deprecated arguments are also returned .
442453* `isRepeatable ` must return a Boolean that indicates if the directive may be
443454 used repeatedly at a single location .
0 commit comments