Package graphql
Class Directives
java.lang.Object
graphql.Directives
The directives that are understood by graphql-java
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final DirectiveDefinitionstatic final GraphQLDirectiveThe @defer directive can be used to defer sending data for a fragment until later in the query.static final DirectiveDefinitionstatic final GraphQLDirectiveThe "deprecated" directive is special and is always available in a graphql schemastatic final DirectiveDefinitionstatic final GraphQLDirectivestatic final DirectiveDefinitionstatic final GraphQLDirectivestatic final Stringstatic final DirectiveDefinitionstatic final GraphQLDirectivestatic final DirectiveDefinitionstatic final GraphQLDirectivestatic final DirectiveDefinitionstatic final GraphQLDirectiveThe "specifiedBy" directive allows to provide a specification URL for a Scalarstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanThis can be used to get the state the `@experimental_disableErrorPropagation` directive support on a JVM wide basis .static voidsetExperimentalDisableErrorPropagationEnabled(boolean flag) This can be used to disable the `@experimental_disableErrorPropagation` directive support on a JVM wide basis in case your server implementation does NOT want to act on this directive ever.
-
Field Details
-
DEPRECATED_DIRECTIVE_DEFINITION
-
INCLUDE_DIRECTIVE_DEFINITION
-
SKIP_DIRECTIVE_DEFINITION
-
SPECIFIED_BY_DIRECTIVE_DEFINITION
-
ONE_OF_DIRECTIVE_DEFINITION
-
DEFER_DIRECTIVE_DEFINITION
-
EXPERIMENTAL_DISABLE_ERROR_PROPAGATION_DIRECTIVE_DEFINITION
@ExperimentalApi public static final DirectiveDefinition EXPERIMENTAL_DISABLE_ERROR_PROPAGATION_DIRECTIVE_DEFINITION -
BOOLEAN
- See Also:
-
STRING
- See Also:
-
NO_LONGER_SUPPORTED
- See Also:
-
DeferDirective
The @defer directive can be used to defer sending data for a fragment until later in the query. This is an opt-in directive that is not available unless it is explicitly put into the schema.This implementation is based on the state of Defer/Stream PR More specifically at the state of this commit
The execution behaviour should match what we get from running Apollo Server 4.9.5 with graphql-js v17.0.0-alpha.2
-
IncludeDirective
-
SkipDirective
-
DeprecatedDirective
The "deprecated" directive is special and is always available in a graphql schema -
SpecifiedByDirective
The "specifiedBy" directive allows to provide a specification URL for a Scalar -
OneOfDirective
-
ExperimentalDisableErrorPropagationDirective
-
-
Constructor Details
-
Directives
public Directives()
-
-
Method Details
-
isExperimentalDisableErrorPropagationDirectiveEnabled
public static boolean isExperimentalDisableErrorPropagationDirectiveEnabled()This can be used to get the state the `@experimental_disableErrorPropagation` directive support on a JVM wide basis .- Returns:
- true if the `@experimental_disableErrorPropagation` directive will be respected
-
setExperimentalDisableErrorPropagationEnabled
public static void setExperimentalDisableErrorPropagationEnabled(boolean flag) This can be used to disable the `@experimental_disableErrorPropagation` directive support on a JVM wide basis in case your server implementation does NOT want to act on this directive ever.- Parameters:
flag- the desired state of the flag
-