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 6060import graphql .schema .GraphQLNamedOutputType ;
6161import graphql .schema .GraphQLNamedSchemaElement ;
6262import graphql .schema .GraphQLNamedType ;
63- import graphql .schema .GraphQLNonNull ;
6463import graphql .schema .GraphQLObjectType ;
6564import graphql .schema .GraphQLScalarType ;
6665import graphql .schema .GraphQLSchema ;
7069import graphql .schema .GraphQLTypeVisitor ;
7170import graphql .schema .GraphQLTypeVisitorStub ;
7271import graphql .schema .GraphQLUnionType ;
73- import graphql .schema .InputValueWithState ;
7472import graphql .schema .SchemaTransformer ;
7573import graphql .schema .TypeResolver ;
7674import graphql .schema .idl .DirectiveInfo ;
9492
9593import static graphql .Assert .assertNotNull ;
9694import static graphql .parser .ParserEnvironment .newParserEnvironment ;
97- import static graphql .schema .GraphQLArgument .newArgument ;
9895import static graphql .schema .GraphQLNonNull .nonNull ;
9996import static graphql .schema .GraphQLTypeUtil .unwrapNonNull ;
10097import static graphql .schema .GraphQLTypeUtil .unwrapNonNullAs ;
Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ directive @skip(
1515 if : Boolean !
1616) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
1717
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
1923
2024"Exposes a URL that specifies the behaviour of this scalar."
2125directive @specifiedBy (
@@ -544,4 +548,4 @@ input InputObject9 {
544548 inputField32 : [ID ! ]
545549 inputField33 : [Scalar2 ]
546550 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
2525
2626directive @Directive9(argument8: String!) on OBJECT
2727
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
2933
3034"Directs the executor to include this field or fragment only when the `if` argument is true"
3135directive @include(
You can’t perform that action at this time.
0 commit comments