Skip to main content
Module

x/typeorm/src/index.ts>MongoEntityManager#aggregate

Forked from https://github.com/typeorm/typeorm
Latest
method MongoEntityManager.prototype.aggregate
Re-export
import { MongoEntityManager } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";

Execute an aggregation framework pipeline against the collection.

Type Parameters

Entity
optional
R = any

Parameters

entityClassOrName: ObjectType<Entity> | EntitySchema<Entity> | string
pipeline: ObjectLiteral[]
optional
options: CollectionAggregationOptions

Returns

AggregationCursor<R>