Skip to content

Commit df767cb

Browse files
committed
Remove commented out code
1 parent c85cbed commit df767cb

1 file changed

Lines changed: 1 addition & 32 deletions

File tree

‎src/main/java/graphql/Directives.java‎

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ public class Directives {
4242
@ExperimentalApi
4343
public static final DirectiveDefinition ONE_OF_DIRECTIVE_DEFINITION;
4444

45-
/**
46-
* The @defer directive can be used to defer sending data for a field till later in the query. This is an opt-in
47-
* directive that is not available unless it is explicitly put into the schema.
48-
*/
49-
// @ExperimentalApi
50-
// public static final DirectiveDefinition DEFER_DIRECTIVE_DEFINITION;
51-
52-
5345
static {
5446
DEPRECATED_DIRECTIVE_DEFINITION = DirectiveDefinition.newDirectiveDefinition()
5547
.name(DEPRECATED)
@@ -84,36 +76,13 @@ public class Directives {
8476
.directiveLocation(newDirectiveLocation().name(INPUT_OBJECT.name()).build())
8577
.description(createDescription("Indicates an Input Object is a OneOf Input Object."))
8678
.build();
87-
88-
// DEFER_DIRECTIVE_DEFINITION = DirectiveDefinition.newDirectiveDefinition()
89-
// .name(DEFER)
90-
// .description(createDescription("This directive allows results to be deferred during execution"))
91-
// .directiveLocation(newDirectiveLocation().name(FRAGMENT_SPREAD.name()).build())
92-
// .directiveLocation(newDirectiveLocation().name(INLINE_FRAGMENT.name()).build())
93-
// .inputValueDefinition(
94-
// newInputValueDefinition()
95-
// .name("if")
96-
// .description(createDescription("Deferred behaviour is controlled by this argument"))
97-
// .type(newTypeName().name("Boolean").build())
98-
// .defaultValue(BooleanValue.newBooleanValue(true).build())
99-
// .build())
100-
// .inputValueDefinition(
101-
// newInputValueDefinition()
102-
// // NOTE: as per the spec draft [https://github.com/graphql/graphql-spec/pull/742/files]:
103-
// // > `label` must not be provided as a variable.
104-
// // VALIDATION: the value of "label" MUST be unique across @defer and @stream in a query
105-
// .name("label")
106-
// .description(createDescription("A unique label that represents the fragment being deferred"))
107-
// .type(newTypeName().name("Boolean").build())
108-
// .defaultValue(BooleanValue.newBooleanValue(true).build())
109-
// .build())
110-
// .build();
11179
}
11280

11381
/**
11482
* The @defer directive can be used to defer sending data for a field till later in the query. This is an opt-in
11583
* directive that is not available unless it is explicitly put into the schema.
11684
*/
85+
@ExperimentalApi
11786
public static final GraphQLDirective DeferDirective = GraphQLDirective.newDirective()
11887
.name("defer")
11988
.description("This directive allows results to be deferred during execution")

0 commit comments

Comments
 (0)