Skip to content

Commit

Permalink
Remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
felipe-gdr committed Dec 12, 2023
1 parent c85cbed commit 99213e7
Showing 1 changed file with 2 additions and 30 deletions.
32 changes: 2 additions & 30 deletions src/main/java/graphql/Directives.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,12 @@ public class Directives {
public static final String NO_LONGER_SUPPORTED = "No longer supported";
public static final DirectiveDefinition DEPRECATED_DIRECTIVE_DEFINITION;
public static final DirectiveDefinition SPECIFIED_BY_DIRECTIVE_DEFINITION;
@ExperimentalApi
public static final DirectiveDefinition ONE_OF_DIRECTIVE_DEFINITION;

/**
* The @defer directive can be used to defer sending data for a field till later in the query. This is an opt-in
* directive that is not available unless it is explicitly put into the schema.
*/
// @ExperimentalApi
// public static final DirectiveDefinition DEFER_DIRECTIVE_DEFINITION;

@ExperimentalApi
public static final DirectiveDefinition ONE_OF_DIRECTIVE_DEFINITION;

static {
DEPRECATED_DIRECTIVE_DEFINITION = DirectiveDefinition.newDirectiveDefinition()
Expand Down Expand Up @@ -84,30 +80,6 @@ public class Directives {
.directiveLocation(newDirectiveLocation().name(INPUT_OBJECT.name()).build())
.description(createDescription("Indicates an Input Object is a OneOf Input Object."))
.build();

// DEFER_DIRECTIVE_DEFINITION = DirectiveDefinition.newDirectiveDefinition()
// .name(DEFER)
// .description(createDescription("This directive allows results to be deferred during execution"))
// .directiveLocation(newDirectiveLocation().name(FRAGMENT_SPREAD.name()).build())
// .directiveLocation(newDirectiveLocation().name(INLINE_FRAGMENT.name()).build())
// .inputValueDefinition(
// newInputValueDefinition()
// .name("if")
// .description(createDescription("Deferred behaviour is controlled by this argument"))
// .type(newTypeName().name("Boolean").build())
// .defaultValue(BooleanValue.newBooleanValue(true).build())
// .build())
// .inputValueDefinition(
// newInputValueDefinition()
// // NOTE: as per the spec draft [https://github.com/graphql/graphql-spec/pull/742/files]:
// // > `label` must not be provided as a variable.
// // VALIDATION: the value of "label" MUST be unique across @defer and @stream in a query
// .name("label")
// .description(createDescription("A unique label that represents the fragment being deferred"))
// .type(newTypeName().name("Boolean").build())
// .defaultValue(BooleanValue.newBooleanValue(true).build())
// .build())
// .build();
}

/**
Expand Down

0 comments on commit 99213e7

Please sign in to comment.