Skip to content

Commit

Permalink
Merge pull request #7 from DamilolaAlao/main
Browse files Browse the repository at this point in the history
Update aggregate action name
  • Loading branch information
surmon-china authored Nov 18, 2022
2 parents f98eb23 + f9a31ca commit e1396ca
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 e1396ca

Please sign in to comment.