k-mongoose-soft-delete
An advanced package for softdeleting models with mongoose (also 'find', 'findOne', 'findOneAndUpdate', 'update', 'count')
TODO: Pending add more checks, test and documentation
Installation
The best way to install it is using npm
npm install k-mongoose-soft-delete --save
Loading
var softDelete = ;
Initialization and Usage
Basic usage (you can see how works better with test:
mongoose; Resource = title: type: String second: type: String soft_delete_action: 'null' third: type: String soft_delete_action: 'prefix'timestamps:true; Resource; //When you have a resourceresource;
Support
This plugin is proudly supported by Kubide hi@kubide.es