Package graphql.execution.conditional
Interface ConditionalNodeDecisionEnvironment
-
public interface ConditionalNodeDecisionEnvironment
The parameters given to aConditionalNodeDecision
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.List<Directive>
getDirectives()
DirectivesContainer<?>
getDirectivesContainer()
This is an ASTNode
that has directives on it.GraphQLContext
getGraphQLContext()
@Nullable GraphQLSchema
getGraphQlSchema()
CoercedVariables
getVariables()
-
-
-
Method Detail
-
getDirectivesContainer
DirectivesContainer<?> getDirectivesContainer()
This is an ASTNode
that has directives on it.Field
, @FragmentSpread
andInlineFragment
are examples of nodes that can be conditionally included.- Returns:
- the AST element in question
-
getDirectives
default java.util.List<Directive> getDirectives()
- Returns:
- the list of directives associated with the
getDirectivesContainer()
-
getVariables
CoercedVariables getVariables()
- Returns:
- a map of the current variables
-
getGraphQlSchema
@Nullable GraphQLSchema getGraphQlSchema()
- Returns:
- the
GraphQLSchema
in question - this can be null for certain call paths
-
getGraphQLContext
GraphQLContext getGraphQLContext()
- Returns:
- a graphql context
-
-