Skip to content

Commit fb38693

Browse files
committed
update language for deprecationReason
1 parent b0dfb67 commit fb38693

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

spec/Section 4 -- Introspection.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,8 @@ Fields\:
424424
this field.
425425
- `isDeprecated` returns {true} if this field should no longer be used,
426426
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.
428429

429430
### The \_\_InputValue Type
430431

@@ -442,8 +443,8 @@ Fields\:
442443
provided at runtime. If this input value has no default value, returns {null}.
443444
- `isDeprecated` returns {true} if this input field or argument should no longer
444445
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.
447448

448449
### The \_\_EnumValue Type
449450

@@ -455,8 +456,8 @@ Fields\:
455456
- `description` may return a String or {null}
456457
- `isDeprecated` returns {true} if this enum value should no longer be used,
457458
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.
460461

461462
### The \_\_Directive Type
462463

0 commit comments

Comments
 (0)