Skip to main content
Module

x/typeorm/src/index.ts>MongoRepository#aggregateEntity

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

Execute an aggregation framework pipeline against the collection. This returns modified version of cursor that transforms each result into Entity model.

Parameters

pipeline: ObjectLiteral[]
optional
options: CollectionAggregationOptions

Returns

AggregationCursor<Entity>