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 Detail

      • shouldInclude

        boolean shouldInclude​(ConditionalNodeDecisionEnvironment decisionEnv)
        This is called to decide if a Node 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