Package graphql.execution.conditional
Interface ConditionalNodeDecision
-
@ExperimentalApi public interface ConditionalNodeDecision
This callback interface allows custom implementations to decide if a field is included in a query or not.The default `@skip / @include` is built in, but you can create your own implementations to allow you to make decisions on whether fields are considered part of a query.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
shouldInclude(ConditionalNodeDecisionEnvironment decisionEnv)
This is called to decide if aNode
should be included or not
-
-
-
Method Detail
-
shouldInclude
boolean shouldInclude(ConditionalNodeDecisionEnvironment decisionEnv)
This is called to decide if aNode
should be included or not- Parameters:
decisionEnv
- ghe environment you can use to make the decision- Returns:
- true if the node should be included or false if it should be excluded
-
-