Package graphql.execution.conditional
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
Modifier and TypeMethodDescriptionboolean
shouldInclude
(ConditionalNodeDecisionEnvironment decisionEnv) This is called to decide if aNode
should be included or not
-
Method Details
-
shouldInclude
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
-