Closed
Description
Do you want to request a feature or report a bug?
Docs.
What is the current docs?
https://mongoosejs.com/docs/promises.html#built-in-promises
This means that you can do things like MyModel.findOne({}).then() and await MyModel.findOne({}).exec() if you're using async/await.
What is the expected docs?
await Model.findOne()
works just fine.
This means that you can do things like
MyModel.findOne({}).then()
andawait MyModel.findOne({})
if you're using async/await.
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Mongoose 5.5.14
Node.js 10.16.2