mongoose-version icon indicating copy to clipboard operation
mongoose-version copied to clipboard

Mongoose plugin to save document data versions. Documents are saved to a "versioned" document collection before saving original documents and kept for later use.

Results 18 mongoose-version issues
Sort by recently updated
recently updated
newest added

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of...

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...

How can I store only changes/updates for a document??

Hi, I have a model called Data and its associated DataVersion model. My Data schema is as follows : {class: String, body: {} } The problem is that the content...

![image](https://user-images.githubusercontent.com/6992546/38892130-c03e3d36-425c-11e8-87c3-8ecb02dd4e7c.png) When following the code examples i'm getting this error, is this a expected behavior or there is a bug?

We currently have configured our models to have a custom `versionKey` and we need this for this plugin to work. Thank you :)

I love this plugin. I've been struggling with my own version even with the guidance of this plugin. I need to pull data from another collection (because that's where the...

Re to the following issues I created this fix and pull request: #30 #29 A new property is being added now to every versioned document: __version_modifiedDate so that it's easy...

When mongoose-version plugin is enabled then custom validator functions on Mongoose schema are **run twice** with every request.