@@ -143,7 +143,7 @@ type __Type {
143143 enumValues (includeDeprecated : Boolean = false ): [__EnumValue ! ]
144144
145145 # should be non-null for INPUT_OBJECT only, must be null for the others
146- inputFields : [__InputValue ! ]
146+ inputFields ( includeDeprecated : Boolean = false ) : [__InputValue ! ]
147147
148148 # should be non-null for NON_NULL and LIST only, must be null for the others
149149 ofType : __Type
@@ -152,7 +152,7 @@ type __Type {
152152type __Field {
153153 name : String !
154154 description : String
155- args : [__InputValue ! ]!
155+ args ( includeDeprecated : Boolean = false ) : [__InputValue ! ]!
156156 type : __Type !
157157 isDeprecated : Boolean !
158158 deprecationReason : String
@@ -163,6 +163,8 @@ type __InputValue {
163163 description : String
164164 type : __Type !
165165 defaultValue : String
166+ isDeprecated : Boolean !
167+ deprecationReason : String
166168}
167169
168170type __EnumValue {
@@ -336,6 +338,8 @@ Fields
336338* `name ` must return a String .
337339* `description ` may return a String or {null }.
338340* `inputFields `: a list of `InputValue `.
341+ * Accepts the argument `includeDeprecated ` which defaults to {false }. If
342+ {true }, deprecated fields are also returned .
339343* All other fields must return {null }.
340344
341345
@@ -375,6 +379,8 @@ Fields
375379* `description ` may return a String or {null }
376380* `args ` returns a List of `__InputValue ` representing the arguments this
377381 field accepts .
382+ * Accepts the argument `includeDeprecated ` which defaults to {false }. If
383+ {true }, deprecated arguments are also returned .
378384* `type ` must return a `__Type ` that represents the type of value returned by
379385 this field .
380386* `isDeprecated ` returns {true } if this field should no longer be used ,
@@ -396,6 +402,9 @@ Fields
396402* `defaultValue ` may return a String encoding (using the GraphQL language) of the
397403 default value used by this input value in the condition a value is not
398404 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 .
399408
400409### The __EnumValue Type
401410
@@ -421,5 +430,7 @@ Fields
421430 locations this directive may be placed .
422431* `args ` returns a List of `__InputValue ` representing the arguments this
423432 directive accepts .
433+ * Accepts the argument `includeDeprecated ` which defaults to {false }. If
434+ {true }, deprecated arguments are also returned .
424435* `isRepeatable ` must return a Boolean that indicates if the directive may be
425436 used repeatedly at a single location .
0 commit comments