From f9a31caf08c71d27c05846ca50642fdc696af105 Mon Sep 17 00:00:00 2001 From: Damilola Alao Date: Thu, 17 Nov 2022 05:27:14 +0100 Subject: [PATCH] Update aggregate action name from pipeline to aggregate --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 4eead8a..06915dc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -288,7 +288,7 @@ export class MongoDBDataAPI { public aggregate>( params: ExtendBaseParams<{ pipeline: Array }> ) { - return this.$$action<{ documents: T }>('pipeline', params) + return this.$$action<{ documents: T }>('aggregate', params) } }