Package Exports
- mongoose-soft-delete-ex
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mongoose-soft-delete-ex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Mongoose plugin for soft delete
Installation
> npm install mongoose-soft-delete-exUsage
var mongoose = require('mongoose');
mongoose.plugin( require('mongoose-soft-delete-ex') );Methods overwriting for exclude deleted documents
countfindfindOnefindOneAndUpdateupdate
Methods added for soft delete
deletefindByIdAndDeletefindOneAndDelete
Methods added for restore
restore