Interface GraphQLObligation.FilterReadAttributes

All Superinterfaces:
AutoCloseable, Closeable, GraphQLObligation, Obligation
Enclosing interface:
GraphQLObligation

public static non-sealed interface GraphQLObligation.FilterReadAttributes extends GraphQLObligation
This obligation type can be used to filter (i.e. change) the resource attributes that are returned on a query or on a mutation. Any output field whose value is provided by a ResourceAttributes instance (e.g. Account type), will have its value passed in to the filterReadAttributes(Input) method. This method can then:
  • Return the original attributes
  • Return a changed version of the attributes
  • Return Optional.empty(), signaling that the request to read the attributes should be denied