Skip to content

Commit

Permalink
Update aggregate action name from pipeline to aggregate
Browse files Browse the repository at this point in the history
  • Loading branch information
DamilolaAlao authored Nov 17, 2022
1 parent f98eb23 commit f9a31ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export class MongoDBDataAPI<InnerDoc = Document> {
public aggregate<T extends Array<any>>(
params: ExtendBaseParams<{ pipeline: Array<Document> }>
) {
return this.$$action<{ documents: T }>('pipeline', params)
return this.$$action<{ documents: T }>('aggregate', params)
}
}

Expand Down

0 comments on commit f9a31ca

Please sign in to comment.