Package graphql.execution.conditional
Interface ConditionalNodeDecisionEnvironment
public interface ConditionalNodeDecisionEnvironment
The parameters given to a
ConditionalNodeDecision-
Method Summary
Modifier and TypeMethodDescriptionThis is an ASTNodethat has directives on it.@Nullable GraphQLSchema
-
Method Details
-
getDirectivesContainer
DirectivesContainer<?> getDirectivesContainer()This is an ASTNodethat has directives on it.Field, @FragmentSpreadandInlineFragmentare 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
GraphQLSchemain question - this can be null for certain call paths
-
getGraphQLContext
GraphQLContext getGraphQLContext()- Returns:
- a graphql context
-