kmongo / org.litote.kmongo.coroutine / CoroutineAggregatePublisher / toCollection

toCollection

suspend fun toCollection(): <ERROR CLASS> (source)

Aggregates documents according to the specified aggregation pipeline, which must end with a $out stage.

Return
a publisher with a single element indicating when the operation has completed

Mongodb
.driver.manual aggregation/ Aggregation