mongoose-trashable
a mongoose plugin adding ablity to model instance to be trashed (soft deleted) / untrashed
adding following instance method to mongoose model:
- trash() : mark an instance object as trashed
- untrash() : recover a trashed object
Install
Install the module with:
npm install mongoose-trashable
Usage
var trashable = ; var TestSchema = {}; TestSchema; TestModel = mongoose; instance = instance;
License
Copyright (c) 2014 yi Licensed under the MIT license.