Package graphql
Class Directives
- java.lang.Object
-
- graphql.Directives
-
@PublicApi public class Directives extends java.lang.Object
The directives that are understood by graphql-java
-
-
Field Summary
Fields Modifier and Type Field Description static GraphQLDirective
DeferDirective
The @defer directive can be used to defer sending data for a fragment until later in the query.static DirectiveDefinition
DEPRECATED_DIRECTIVE_DEFINITION
static GraphQLDirective
DeprecatedDirective
The "deprecated" directive is special and is always available in a graphql schemastatic GraphQLDirective
IncludeDirective
static java.lang.String
NO_LONGER_SUPPORTED
static DirectiveDefinition
ONE_OF_DIRECTIVE_DEFINITION
static GraphQLDirective
OneOfDirective
static GraphQLDirective
SkipDirective
static DirectiveDefinition
SPECIFIED_BY_DIRECTIVE_DEFINITION
static GraphQLDirective
SpecifiedByDirective
The "specifiedBy" directive allows to provide a specification URL for a Scalar
-
Constructor Summary
Constructors Constructor Description Directives()
-
-
-
Field Detail
-
NO_LONGER_SUPPORTED
public static final java.lang.String NO_LONGER_SUPPORTED
- See Also:
- Constant Field Values
-
DEPRECATED_DIRECTIVE_DEFINITION
public static final DirectiveDefinition DEPRECATED_DIRECTIVE_DEFINITION
-
SPECIFIED_BY_DIRECTIVE_DEFINITION
public static final DirectiveDefinition SPECIFIED_BY_DIRECTIVE_DEFINITION
-
ONE_OF_DIRECTIVE_DEFINITION
@ExperimentalApi public static final DirectiveDefinition ONE_OF_DIRECTIVE_DEFINITION
-
DeferDirective
@ExperimentalApi public static final GraphQLDirective 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
public static final GraphQLDirective IncludeDirective
-
SkipDirective
public static final GraphQLDirective SkipDirective
-
DeprecatedDirective
public static final GraphQLDirective DeprecatedDirective
The "deprecated" directive is special and is always available in a graphql schemaSee https://graphql.github.io/graphql-spec/June2018/#sec--deprecated
-
SpecifiedByDirective
public static final GraphQLDirective SpecifiedByDirective
The "specifiedBy" directive allows to provide a specification URL for a Scalar
-
OneOfDirective
@ExperimentalApi public static final GraphQLDirective OneOfDirective
-
-