Skip to content

Commit f9a31ca

Browse files
authored
Update aggregate action name from pipeline to aggregate
1 parent f98eb23 commit f9a31ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ export class MongoDBDataAPI<InnerDoc = Document> {
288288
public aggregate<T extends Array<any>>(
289289
params: ExtendBaseParams<{ pipeline: Array<Document> }>
290290
) {
291-
return this.$$action<{ documents: T }>('pipeline', params)
291+
return this.$$action<{ documents: T }>('aggregate', params)
292292
}
293293
}
294294

0 commit comments

Comments
 (0)