eoin-obrien/mongoose-update-if-current

[BUG] Does not update version when update using findOneAndUpdate

Opened this issue · 1 comments

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.