Immutable not working when deleting nested property by assigning new value to parent #9281
Labels
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
Milestone
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When setting schemas to strict:'throw' and deleting a nested property on refetched document by assigning new value to parent, when document is revalidated, no error is thrown
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Error should be thrown
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
mongoose: 5.9.20
node: 12.17.0
mongodb: 3.6.17
The text was updated successfully, but these errors were encountered: