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

graphql.schema.transform.VisibleFieldPredicate Maven / Gradle / Ivy

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


import graphql.PublicSpi;

/**
 * Predicate used during a {@link FieldVisibilitySchemaTransformation} to test whether a field should be visible.
 */
@PublicSpi
@FunctionalInterface
public interface VisibleFieldPredicate {

    /**
     * Test whether a field should be visible. Provided as a more descriptive "test" method that describes exactly
     * what a positive result of "test" should mean.
     *
     * @param environment the context of the field
     * @return true if visible
     */
    boolean isVisible(VisibleFieldPredicateEnvironment environment);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy