mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-04 20:54:36 +00:00
usage: Model.aggregate().match(), error: Expected 1-2 arguments, but got 0.
This commit is contained in:
1
types/mongoose/index.d.ts
vendored
1
types/mongoose/index.d.ts
vendored
@@ -2435,6 +2435,7 @@ declare module "mongoose" {
|
||||
* If a callback is not passed, the aggregate itself is returned.
|
||||
* @param aggregations pipeline operator(s) or operator array
|
||||
*/
|
||||
aggregate(): Aggregate<any[]>;
|
||||
aggregate(aggregations: any[]): Aggregate<any[]>;
|
||||
aggregate(aggregations: any[], cb: Function): Promise<any[]>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user