diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index cb8ca38408..da4714d59f 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -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; aggregate(aggregations: any[]): Aggregate; aggregate(aggregations: any[], cb: Function): Promise;