Skip to content

Commit

Permalink
added missing match and model methods in Aggregate class in type defi…
Browse files Browse the repository at this point in the history
…nition file
  • Loading branch information
Maneksh authored and Maneksh committed Dec 14, 2020
1 parent bdde2ec commit beac486
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2258,6 +2258,18 @@ declare module "mongoose" {
/** Appends new custom $lookup operator to this aggregate pipeline. */
lookup(options: any): this;

/**
* Appends a new custom $match operator to this aggregate pipeline.
* @param arg $match operator contents
*/
match(arg: any): this;

/**
* Binds this aggregate to a model.
* @param model the model to which the aggregate is to be bound
*/
model(model: any): this;

/** Returns the current pipeline */
pipeline(): any[];

Expand Down

0 comments on commit beac486

Please sign in to comment.