All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.execution.conditional.ConditionalNodeDecision Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
package graphql.execution.conditional;

import graphql.ExperimentalApi;

/**
 * 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. */ @ExperimentalApi public interface ConditionalNodeDecision { /** * This is called to decide if a {@link graphql.language.Node} should be included or not * * @param decisionEnv ghe environment you can use to make the decision * * @return true if the node should be included or false if it should be excluded */ boolean shouldInclude(ConditionalNodeDecisionEnvironment decisionEnv); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy