ma

mongoose-archiver

Archives removed documents to an archive collection

Showing:

Popularity

Downloads/wk

3

GitHub Stars

1

Maintenance

Last Commit

7yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

mongoose-archiver

Archives removed documents to an archive collection

Build Status NPM version

How to install

npm install mongoose-archiver

How to use

Add the plugin to your schema.

var your_schema = new Schema({
    field: String
});

your_schema.plugin(require('mongoose-archiver'));

When you remove any document from collection, plugin automatically creates an archive collection and inserts the removed document in it. Later when you need to query any removed documents, you can have the archive model like this:

var archive_model = your_model.archive();
archive_model.find({field: value}, callback);

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial