@@ -39,16 +39,12 @@ public class Directives {
3939 public static final String NO_LONGER_SUPPORTED = "No longer supported" ;
4040 public static final DirectiveDefinition DEPRECATED_DIRECTIVE_DEFINITION ;
4141 public static final DirectiveDefinition SPECIFIED_BY_DIRECTIVE_DEFINITION ;
42- @ ExperimentalApi
43- public static final DirectiveDefinition ONE_OF_DIRECTIVE_DEFINITION ;
44-
4542 /**
4643 * The @defer directive can be used to defer sending data for a field till later in the query. This is an opt-in
4744 * directive that is not available unless it is explicitly put into the schema.
4845 */
49- // @ExperimentalApi
50- // public static final DirectiveDefinition DEFER_DIRECTIVE_DEFINITION;
51-
46+ @ ExperimentalApi
47+ public static final DirectiveDefinition ONE_OF_DIRECTIVE_DEFINITION ;
5248
5349 static {
5450 DEPRECATED_DIRECTIVE_DEFINITION = DirectiveDefinition .newDirectiveDefinition ()
@@ -84,30 +80,6 @@ public class Directives {
8480 .directiveLocation (newDirectiveLocation ().name (INPUT_OBJECT .name ()).build ())
8581 .description (createDescription ("Indicates an Input Object is a OneOf Input Object." ))
8682 .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();
11183 }
11284
11385 /**
0 commit comments