Skip to content

Commit 23f175c

Browse files
leebyronIvanGoncharov
authored andcommitted
Code review
1 parent cce1219 commit 23f175c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

spec/Section 3 -- Type System.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,12 +2047,13 @@ condition is false.
20472047
```graphql
20482048
directive @deprecated(
20492049
reason: String = "No longer supported"
2050-
) on FIELD_DEFINITION | ENUM_VALUE | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
2050+
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
20512051
```
20522052

20532053
The `@deprecated` _built-in directive_ is used within the type system definition
20542054
language to indicate deprecated portions of a GraphQL service's schema, such as
2055-
deprecated fields on a type or deprecated enum values.
2055+
deprecated fields on a type, arguments on a field, input fields on an input
2056+
type, or values of an enum type.
20562057

20572058
Deprecations include a reason for why it is deprecated, which is formatted using
20582059
Markdown syntax (as specified by [CommonMark](https://commonmark.org/)).
@@ -2065,7 +2066,7 @@ type ExampleType {
20652066
newField: String
20662067
oldField: String @deprecated(reason: "Use `newField`.")
20672068

2068-
existingField(
2069+
anotherField(
20692070
newArg: String
20702071
oldArg: String @deprecated(reason: "Use `newArg`.")
20712072
): String

spec/Section 4 -- Introspection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ type __Directive {
193193
name: String!
194194
description: String
195195
locations: [__DirectiveLocation!]!
196-
args: [__InputValue!]!
196+
args(includeDeprecated: Boolean = false): [__InputValue!]!
197197
isRepeatable: Boolean!
198198
}
199199

0 commit comments

Comments
 (0)