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.
2 parents f98eb23 + f9a31ca commit e1396caCopy full SHA for e1396ca
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