aggregate

fun aggregate(accumulator: AliasedAggregate, vararg additionalAccumulators: AliasedAggregate): Pipeline(source)

Replaces the documents with one document holding accumulator and additionalAccumulators.


fun aggregate(aggregateStage: AggregateStage): Pipeline(source)

Appends the aggregation aggregateStage.


fun aggregate(aggregateStage: AggregateStage, options: AggregateOptions): Pipeline(source)

Appends the aggregation aggregateStage with options.