Skip to content

Commit 15d6660

Browse files
authoredDec 10, 2020
fix(index.d.ts): add missing Aggregate#skip() & Aggregate#limit()
1 parent dd348b1 commit 15d6660

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎index.d.ts

+12
Original file line numberDiff line numberDiff line change
@@ -2236,6 +2236,12 @@ declare module "mongoose" {
22362236
/** Sets the hint option for the aggregation query (ignored for < 3.6.0) */
22372237
hint(value: object | string): this;
22382238

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+
22392245
/** Appends new custom $lookup operator to this aggregate pipeline. */
22402246
lookup(options: any): this;
22412247

@@ -2265,6 +2271,12 @@ declare module "mongoose" {
22652271

22662272
/** Sets the session for this aggregation. Useful for [transactions](/docs/transactions.html). */
22672273
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;
22682280

22692281
/** Appends a new $sort operator to this aggregate pipeline. */
22702282
sort(arg: any): this;

0 commit comments

Comments
 (0)
Please sign in to comment.