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.
Predicate used during a
FieldVisibilitySchemaTransformation
to test whether a field should be visible.-
Method Summary
Modifier and TypeMethodDescriptionboolean
isVisible
(VisibleFieldPredicateEnvironment environment) Test whether a field should be visible.
-
Method Details
-
isVisible
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
-