From ecfbd369d771e6a4e1664012b099c01edd5ef1b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=BCmay=20=C3=87eber?= Date: Wed, 14 Feb 2018 16:19:04 +0300 Subject: [PATCH] usage: Model.aggregate().match(), error: Expected 1-2 arguments, but got 0. --- types/mongoose/index.d.ts | 1 + 1 file changed, 1 insertion(+) 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;