File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 60
60
import graphql .schema .GraphQLNamedOutputType ;
61
61
import graphql .schema .GraphQLNamedSchemaElement ;
62
62
import graphql .schema .GraphQLNamedType ;
63
- import graphql .schema .GraphQLNonNull ;
64
63
import graphql .schema .GraphQLObjectType ;
65
64
import graphql .schema .GraphQLScalarType ;
66
65
import graphql .schema .GraphQLSchema ;
70
69
import graphql .schema .GraphQLTypeVisitor ;
71
70
import graphql .schema .GraphQLTypeVisitorStub ;
72
71
import graphql .schema .GraphQLUnionType ;
73
- import graphql .schema .InputValueWithState ;
74
72
import graphql .schema .SchemaTransformer ;
75
73
import graphql .schema .TypeResolver ;
76
74
import graphql .schema .idl .DirectiveInfo ;
94
92
95
93
import static graphql .Assert .assertNotNull ;
96
94
import static graphql .parser .ParserEnvironment .newParserEnvironment ;
97
- import static graphql .schema .GraphQLArgument .newArgument ;
98
95
import static graphql .schema .GraphQLNonNull .nonNull ;
99
96
import static graphql .schema .GraphQLTypeUtil .unwrapNonNull ;
100
97
import static graphql .schema .GraphQLTypeUtil .unwrapNonNullAs ;
Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ directive @skip(
15
15
if : Boolean !
16
16
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
17
17
18
- directive @deprecated (reason : String ! ) on FIELD_DEFINITION | ENUM_VALUE
18
+ "Marks the field, argument, input field or enum value as deprecated"
19
+ directive @deprecated (
20
+ "The reason for the deprecation"
21
+ reason : String ! = " No longer supported"
22
+ ) on FIELD_DEFINITION | ARGUMENT_DEFINITION | ENUM_VALUE | INPUT_FIELD_DEFINITION
19
23
20
24
"Exposes a URL that specifies the behaviour of this scalar."
21
25
directive @specifiedBy (
@@ -544,4 +548,4 @@ input InputObject9 {
544
548
inputField32 : [ID ! ]
545
549
inputField33 : [Scalar2 ]
546
550
inputField34 : InputObject8
547
- }
551
+ }
Original file line number Diff line number Diff line change @@ -25,7 +25,11 @@ directive @Directive8(argument7: Enum3!) on FIELD_DEFINITION
25
25
26
26
directive @Directive9(argument8: String!) on OBJECT
27
27
28
- directive @deprecated(reason: String!) on FIELD_DEFINITION | ARGUMENT_DEFINITION | ENUM_VALUE | INPUT_FIELD_DEFINITION
28
+ "Marks the field, argument, input field or enum value as deprecated"
29
+ directive @deprecated(
30
+ "The reason for the deprecation"
31
+ reason: String! = "No longer supported"
32
+ ) on FIELD_DEFINITION | ARGUMENT_DEFINITION | ENUM_VALUE | INPUT_FIELD_DEFINITION
29
33
30
34
"Directs the executor to include this field or fragment only when the `if` argument is true"
31
35
directive @include(
You can’t perform that action at this time.
0 commit comments