Class RedactOperation

java.lang.Object
org.springframework.data.mongodb.core.aggregation.RedactOperation
All Implemented Interfaces:
AggregationOperation

public class RedactOperation extends Object implements AggregationOperation
RedactOperation allows to restrict the content of a Document based on information stored within itself.
 RedactOperation.builder() //
                .when(Criteria.where("level").is(5)) //
                .thenPrune() //
                .otherwiseDescend() //
                .build();
 
Since:
3.0
Author:
Christoph Strobl
See Also: