Model.update setter documentation inaccuracy / misdirection #7801
Labels
docs
This issue is due to a mistake or omission in the mongoosejs.com documentation
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Do you want to request a feature or report a bug?
documentation inaccuracy / misdirection
What is the current behavior?
documentation states
Update
will not apply setters, but setters are run (this
is theQuery
)https://mongoosejs.com/docs/api.html#model_Model.update
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Judging from the docs, the
set
function should not runWhat are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node 9.6.1
Mongoose 5.0.16 (did not update due to too many deprecation warnings)
MongoDB 4.02
NOTE
Just found this comment: #7404 (comment)
So I'm guessing the behavior changed but not reflected in docs?
The text was updated successfully, but these errors were encountered: