Package graphql.schema.idl
Class DirectiveInfo
java.lang.Object
graphql.schema.idl.DirectiveInfo
Info on all the directives provided by graphql specification
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map
<String, GraphQLDirective> A map from directive name to directive which provided by specificationstatic final Set
<GraphQLDirective> A set of directives which provided by graphql specification -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isGraphqlSpecifiedDirective
(GraphQLDirective graphQLDirective) Returns true if the provided directive has been defined in graphql specificationstatic boolean
isGraphqlSpecifiedDirective
(String directiveName) Returns true if a directive with provided directiveName has been defined in graphql specification
-
Field Details
-
GRAPHQL_SPECIFICATION_DIRECTIVE_MAP
A map from directive name to directive which provided by specification -
GRAPHQL_SPECIFICATION_DIRECTIVES
A set of directives which provided by graphql specification
-
-
Constructor Details
-
DirectiveInfo
public DirectiveInfo()
-
-
Method Details
-
isGraphqlSpecifiedDirective
Returns true if a directive with provided directiveName has been defined in graphql specification- Parameters:
directiveName
- the name of directive in question- Returns:
- true if the directive provided by graphql specification, and false otherwise
-
isGraphqlSpecifiedDirective
Returns true if the provided directive has been defined in graphql specification- Parameters:
graphQLDirective
- the directive in question- Returns:
- true if the directive provided by graphql specification, and false otherwise
-