File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -2236,6 +2236,12 @@ declare module "mongoose" {
2236
2236
/** Sets the hint option for the aggregation query (ignored for < 3.6.0) */
2237
2237
hint ( value : object | string ) : this;
2238
2238
2239
+ /**
2240
+ * Appends a new $limit operator to this aggregate pipeline.
2241
+ * @param num maximum number of records to pass to the next stage
2242
+ */
2243
+ limit ( num : number ) : this;
2244
+
2239
2245
/** Appends new custom $lookup operator to this aggregate pipeline. */
2240
2246
lookup ( options : any ) : this;
2241
2247
@@ -2265,6 +2271,12 @@ declare module "mongoose" {
2265
2271
2266
2272
/** Sets the session for this aggregation. Useful for [transactions](/docs/transactions.html). */
2267
2273
session ( session : mongodb . ClientSession | null ) : this;
2274
+
2275
+ /**
2276
+ * Appends a new $skip operator to this aggregate pipeline.
2277
+ * @param num number of records to skip before next stage
2278
+ */
2279
+ skip ( num : number ) : this;
2268
2280
2269
2281
/** Appends a new $sort operator to this aggregate pipeline. */
2270
2282
sort ( arg : any ) : this;
You can’t perform that action at this time.
0 commit comments