Skip to main content
Very Popular
Latest
method Collection.prototype.aggregate
import { Collection } from "https://deno.land/x/mongo@v0.33.0/src/collection/mod.ts";

Perform aggregation on the collection

Type Parameters

optional
U = T

Parameters

pipeline: AggregatePipeline<U>[]

The aggregation pipeline

optional
options: AggregateOptions

Additional options for the operation

Returns

AggregateCursor<U>

A cursor for the aggregation