method Collection.prototype.aggregateimport { Collection } from "https://deno.land/x/mongo@v0.33.0/src/collection/mod.ts"; aggregate<U = T>(pipeline: AggregatePipeline<U>[], options?: AggregateOptions): AggregateCursor<U>Perform aggregation on the collection Type ParametersoptionalU = TParameterspipeline: AggregatePipeline<U>[]The aggregation pipeline optionaloptions: AggregateOptionsAdditional options for the operation ReturnsAggregateCursor<U>A cursor for the aggregation