Validator called more than once when using document.set #10141
Labels
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
has repro script
There is a repro script, the Mongoose devs need to confirm that it reproduces the issue
Milestone
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
For
Object
properties, thevalidate
function gets called several times, when using a setterdoc.set
.If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
For the test “when using setter for single properties”, the validator should be called once (as in the other two cases)
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Maybe related to:
The text was updated successfully, but these errors were encountered: