MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / aggregate

Method aggregate

packages/mongodb/src/MongoDriver.ts:515–522  ·  view source on GitHub ↗
(
    entityName: EntityName,
    pipeline: any[],
    ctx?: Transaction<ClientSession>,
    signal?: AbortSignal,
  )

Source from the content-addressed store, hash-verified

513 }
514
515 override async aggregate(
516 entityName: EntityName,
517 pipeline: any[],
518 ctx?: Transaction<ClientSession>,
519 signal?: AbortSignal,
520 ): Promise<any[]> {
521 return this.rethrow(this.getConnection('read').aggregate(entityName, pipeline, ctx, undefined, signal));
522 }
523
524 async *streamAggregate<T extends object>(
525 entityName: EntityName<T>,

Callers

nothing calls this directly

Calls 3

rethrowMethod · 0.80
aggregateMethod · 0.65
getConnectionMethod · 0.65

Tested by

no test coverage detected