org.springframework.data.mongodb.core

Interface ReactiveAggregationOperation

  • All Known Subinterfaces:
    ReactiveFluentMongoOperations, ReactiveMongoOperations
    All Known Implementing Classes:
    ReactiveMongoTemplate


    public interface ReactiveAggregationOperation
    ReactiveAggregationOperation allows creation and execution of reactive MongoDB aggregation operations in a fluent API style.
    The starting domainType is used for mapping the Aggregation provided via by into the MongoDB specific representation, as well as mapping back the resulting Document. An alternative input type for mapping the Aggregation can be provided by using TypedAggregation.
         
             aggregateAndReturn(Jedi.class)
                 .by(newAggregation(Human.class, project("These are not the droids you are looking for")))
                 .all();
         
     
    Since:
    2.0
    Author:
    Mark Paluch, Christoph Strobl