Breaking change in 6.1.4 - error one findByIdAndUpdate with undefined id #11149
Labels
discussion
If you have any thoughts or comments on this issue, please share them!
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Do you want to request a feature or report a bug?
bug
What is the current behavior?
In the latest release, there is a "fix":
While I understand the logic behind it, it is a breaking change in the version.
What is the expected behavior?
As the previous
~6.1
versions, no errors, just don't update any document.What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node.js - 16
Mongoose: 6.1.4
The text was updated successfully, but these errors were encountered: