We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f98eb23 commit f9a31caCopy full SHA for f9a31ca
src/index.ts
@@ -288,7 +288,7 @@ export class MongoDBDataAPI<InnerDoc = Document> {
288
public aggregate<T extends Array<any>>(
289
params: ExtendBaseParams<{ pipeline: Array<Document> }>
290
) {
291
- return this.$$action<{ documents: T }>('pipeline', params)
+ return this.$$action<{ documents: T }>('aggregate', params)
292
}
293
294
0 commit comments