Package graphql.schema.transform
Interface VisibleFieldPredicate
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@PublicSpi @FunctionalInterface public interface VisibleFieldPredicate
Predicate used during aFieldVisibilitySchemaTransformation
to test whether a field should be visible.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isVisible(VisibleFieldPredicateEnvironment environment)
Test whether a field should be visible.
-
-
-
Method Detail
-
isVisible
boolean isVisible(VisibleFieldPredicateEnvironment environment)
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.- Parameters:
environment
- the context of the field- Returns:
- true if visible
-
-