mongo-softdelete
Wrapper for a mongo collection that soft delete documents.
Soft delete documents is not remove from the collection but instead the property _deleted
has been added to the document.
Queries executed from the wrapped collection will ignore soft deleted documents.
A soft deleted document will have the property _deleted
set to a time stamp.
_deleted: data: ...
The following methods are not supported:
- distinct
- createIndex
- ensureIndex
- mapReduce
- group
- geoNear
- geoHaystackSearch
- aggregate
Usage:
var mongoSsoftDelete = ; mongodbDb;