fun <reified T : Any> aggregate(pipeline: List<Bson>): CoroutineAggregatePublisher<T>
(source)
Aggregates documents according to the specified aggregation pipeline.
pipeline
- the aggregate pipeline
Parameters
Return
a publisher containing the result of the aggregation operation
Mongodb
.driver.manual aggregation/ Aggregation
fun <reified T : Any> aggregate(clientSession: ClientSession, pipeline: List<Bson>): CoroutineAggregatePublisher<T>
(source)
Aggregates documents according to the specified aggregation pipeline.
clientSession
- the client session with which to associate this operation
pipeline
- the aggregate pipeline
Parameters
Return
a publisher containing the result of the aggregation operation
Mongodb
.driver.manual aggregation/ Aggregation
Mongodb
.server.release 3.6
Since
1.7