Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(index.d.ts): add missing Aggregate#skip() & Aggregate#limit() #9692

Merged
merged 1 commit into from
Dec 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2236,6 +2236,12 @@ declare module "mongoose" {
/** Sets the hint option for the aggregation query (ignored for < 3.6.0) */
hint(value: object | string): this;

/**
* Appends a new $limit operator to this aggregate pipeline.
* @param num maximum number of records to pass to the next stage
*/
limit(num: number): this;

/** Appends new custom $lookup operator to this aggregate pipeline. */
lookup(options: any): this;

Expand Down Expand Up @@ -2265,6 +2271,12 @@ declare module "mongoose" {

/** Sets the session for this aggregation. Useful for [transactions](/docs/transactions.html). */
session(session: mongodb.ClientSession | null): this;

/**
* Appends a new $skip operator to this aggregate pipeline.
* @param num number of records to skip before next stage
*/
skip(num: number): this;

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