You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
I'd like to report a bug
What is the current behavior?
I updated from Mongoose 5.10.19 with @types/mongoose to 5.11.6 and got a new error from typescript: error TS2339: Property 'limit' does not exist on type 'Aggregate<any[]>'
on a line like this: const data = await Model.aggregate(aggregationPipeline).skip(skip).limit(limit);
If the current behavior is a bug, please provide the steps to reproduce.
Compiling the following with typescript should reproduce the issue:
What is the expected behavior?
The program should compile as before
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
NodeJs: 14.11.0
Mongoose: 5.11.6
MongoDB: 4.2.9
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
I'd like to report a bug
What is the current behavior?
I updated from Mongoose 5.10.19 with @types/mongoose to 5.11.6 and got a new error from typescript:
error TS2339: Property 'limit' does not exist on type 'Aggregate<any[]>'
on a line like this:
const data = await Model.aggregate(aggregationPipeline).skip(skip).limit(limit);
If the current behavior is a bug, please provide the steps to reproduce.
Compiling the following with typescript should reproduce the issue:
What is the expected behavior?
The program should compile as before
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
NodeJs: 14.11.0
Mongoose: 5.11.6
MongoDB: 4.2.9
The text was updated successfully, but these errors were encountered: