-
Notifications
You must be signed in to change notification settings - Fork 35
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
Save vs update #25
Comments
I'm currently using this module and i can confirm that this doesn't work on update. The versioning is applied only on pre('save') which is not fired on updates. |
Would it be difficult to add such functionality? According to http://mongoosejs.com/docs/middleware.html
|
+1 |
I may need this kind of functionality as well so I did a little bit of searching/reading. As @benoror pointed- From what I've gathered, it is (possibly) possible to add the version tracking functionality for From what I see, this plugin works by adding In array / collection strategies (lib/strategies):
Note - I believe the Of course, need to figure out how to set the Note: this is all conceptual and I didn't even try to run it (yet). I posted here to receive comments/suggestions. Is this repository still active? Anyway one the authors is around to comment/assist/merge? . |
Any updates? This feature is the major use-case. |
I wasn't able to get a sense from the documentation whether "update" and "findOneAndUpdate" are supported by mongoose-version. I know they have different hooks from standard "save" so can you confirm whether or not those are supported?
Thanks!
The text was updated successfully, but these errors were encountered: