@@ -110,7 +110,7 @@ CommonMark-compliant Markdown renderer.
110
110
111
111
To support the management of backwards compatibility, GraphQL fields, arguments,
112
112
input fields, and enum values can indicate whether or not they are deprecated
113
- (` isDeprecated: Boolean ` ) along with a description of why it is deprecated
113
+ (` isDeprecated: Boolean! ` ) along with a description of why it is deprecated
114
114
(` deprecationReason: String ` ).
115
115
116
116
Tools built using GraphQL introspection should respect deprecation by
@@ -424,7 +424,8 @@ Fields\:
424
424
this field .
425
425
- `isDeprecated ` returns {true } if this field should no longer be used ,
426
426
otherwise {false }.
427
- - `deprecationReason ` optionally provides a reason why this field is deprecated .
427
+ - `deprecationReason ` returns the reason why this field is deprecated , or null
428
+ if this field is not deprecated .
428
429
429
430
### The \_\_InputValue Type
430
431
@@ -442,8 +443,8 @@ Fields\:
442
443
provided at runtime . If this input value has no default value , returns {null }.
443
444
- `isDeprecated ` returns {true } if this input field or argument should no longer
444
445
be used , otherwise {false }.
445
- - `deprecationReason ` optionally provides a reason why this input field or
446
- argument is deprecated .
446
+ - `deprecationReason ` returns the reason why this input field or argument is
447
+ deprecated , or null if the input field or argument is not deprecated .
447
448
448
449
### The \_\_EnumValue Type
449
450
@@ -455,8 +456,8 @@ Fields\:
455
456
- `description ` may return a String or {null }.
456
457
- `isDeprecated ` returns {true } if this enum value should no longer be used,
457
458
otherwise {false }.
458
- - `deprecationReason ` optionally provides a reason why this enum value is
459
- deprecated.
459
+ - `deprecationReason ` returns the reason why this enum value is deprecated, or
460
+ null if the enum value is not deprecated.
460
461
461
462
### The \_\_Directive Type
462
463
0 commit comments