mongoose-update-if-current
mongoose-update-if-current copied to clipboard
[BUG] Does not update version when update using findOneAndUpdate
Describe the bug When updating some document using findOneAndUpdate query it does not update the version or __v of that document
To Reproduce try to update a document findOneAndUpdate while using this plugin, and then check the version
is this resolved now? I have the same issue.
Using findByIdAndUpdate or findOneAndUpdate does not work.