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

add type def for Aggreaget#model without arguments #12864

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions types/aggregate.d.ts
Expand Up @@ -166,6 +166,11 @@ declare module 'mongoose' {
*/
model(model: Model<any>): this;

/**
* Returns the current model bound to this aggregate object
*/
model(): Model<any>;

/**
* Append a new $near operator to this aggregation pipeline
* @param arg $near operator contents
Expand Down