Package graphql.execution.conditional
Interface ConditionalNodeDecisionEnvironment
-
public interface ConditionalNodeDecisionEnvironmentThe 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 ASTNodethat has directives on it.GraphQLContextgetGraphQLContext()@Nullable GraphQLSchemagetGraphQlSchema()CoercedVariablesgetVariables()
-
-
-
Method Detail
-
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
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
GraphQLSchemain question - this can be null for certain call paths
-
getGraphQLContext
GraphQLContext getGraphQLContext()
- Returns:
- a graphql context
-
-