-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hooks for doc.updateOne()
#7133
Comments
Shame on me, it was not a good idea to use arrow functions as pre callbacks. |
I updated linked gist to not use arrow function. |
Okay, regex works on latest version of mongoose, |
options.document/query
parameter looks like ignored
Right now we don't support hooking |
options.document/query
parameter looks like ignoreddoc.updateOne()
Regex hook name and options object parameters of
pre
look like not working.(K)Ubuntu 18.04
Node v10.7.0
mongodb 3.6.3
mongoose v5.3.3
https://gist.github.com/YuriGor/cc8114a0d0b1ad151eaf58baab24aa3a
The text was updated successfully, but these errors were encountered: