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
The project method is missing from the Aggregate interface.
If the current behavior is a bug, please provide the steps to reproduce.
import{createConnection}from'mongoose';constdb=createConnection();constaggregateResults=awaitdb.model('SomeModel').aggregate<SomeModelDocument>().project({// <<-- Not recognizedsomeField: true});
Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior?
The
project
method is missing from theAggregate
interface.If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
The
project
method does indeed exists in the aggregate class.What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
v14.16.0
v5.12.1
v4.0.14
The text was updated successfully, but these errors were encountered: