July 1, 2016
- Default delete set to
false
#10
April 26, 2016
- Correct field name into documentation,
validateBeforeDelete
April 20, 2016
- Add option to disable validation on delete #6
Mar 11, 2016
- Bulk delete and restore
- Remove requirement for callback in delete() and restore()
Feb 1, 2016
- Add option to override static model methods (
count
,find
,findOne
,findOneAndUpdate
,update
) - Add additional methods for overridden static methods:
only not deleted documents | only deleted documents | all documents |
---|---|---|
count() | countDeleted | countWithDeleted |
find() | findDeleted | findWithDeleted |
findOne() | findOneDeleted | findOneWithDeleted |
findOneAndUpdate() | findOneAndUpdateDeleted | findOneAndUpdateWithDeleted |
update() | updateDeleted | updateWithDeleted |
Aug 1, 2014
- Initial version
- Add
deleted
(true-false) key on document - Add
deletedAt
key to store time of deletion - Add
deletedBy
key to record who deleted document - Restore deleted documents,
restore()
method