[Bug] populate with clone: true
throws an error with lean
#8760
Labels
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
Milestone
What is the current behavior?
Can not use
clone: true
in populate along withlean()
, it throws an error:If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
To populate successfully.
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
mongoose v5.9.7
MongoDB v4.0.4
Node v12.0
Will be putting a PR to solve this sometime soon.
The text was updated successfully, but these errors were encountered: