aggregate
fun aggregate(accumulator: AliasedAggregate, vararg additionalAccumulators: AliasedAggregate): Pipeline(source)
Replaces the documents with one document holding accumulator and additionalAccumulators.
Appends the aggregation aggregateStage.
Appends the aggregation aggregateStage with options.