Package graphql.execution.conditional
Interface ConditionalNodeDecisionEnvironment
public interface ConditionalNodeDecisionEnvironment
The parameters given to a
ConditionalNodeDecision
-
Method Summary
Modifier and TypeMethodDescriptionThis is an ASTNode
that has directives on it.@Nullable GraphQLSchema
-
Method Details
-
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
- 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
-