Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
17 lines
831 B
Plaintext
17 lines
831 B
Plaintext
import { AllCollections } from "../../../types/schema.cjs";
|
|
import { AggregationOptions, AggregationOutput } from "../../../types/aggregate.cjs";
|
|
import { RestCommand } from "../../types.cjs";
|
|
|
|
//#region src/rest/commands/read/aggregate.d.ts
|
|
|
|
/**
|
|
* Aggregate allow you to perform calculations on a set of values, returning a single result.
|
|
* @param collection The collection to aggregate
|
|
* @param options The aggregation options
|
|
* @returns Aggregated data
|
|
* @throws Will throw if collection is empty
|
|
*/
|
|
declare const aggregate: <Schema, Collection extends AllCollections<Schema>, Options extends AggregationOptions<Schema, Collection>>(collection: Collection, options: Options) => RestCommand<AggregationOutput<Schema, Collection, Options>, Schema>;
|
|
//#endregion
|
|
export { aggregate };
|
|
//# sourceMappingURL=aggregate.d.cts.map |