Skip to content

Commit

Permalink
fix(index.d.ts): add back Aggregate#project() types that were mista…
Browse files Browse the repository at this point in the history
…kenly removed in 5.12.0

Fix #10043
  • Loading branch information
vkarpov15 committed Mar 22, 2021
1 parent 9a3a7b4 commit 04f880f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.d.ts
Expand Up @@ -2439,6 +2439,9 @@ declare module 'mongoose' {
/** Returns the current pipeline */
pipeline(): any[];

/** Appends a new $project operator to this aggregate pipeline. */
project(arg: string | Object): this;

/** Sets the readPreference option for the aggregation query. */
read(pref: string | mongodb.ReadPreferenceMode, tags?: any[]): this;

Expand Down

0 comments on commit 04f880f

Please sign in to comment.