jam:soft-delete is an easy way to add a soft delete mechanism to your app. Its key features are:
- Zero config needed (though you can customize)
- Isomorphic so that it works with Optimistic UI
- Automatically overrides
removeAsyncto make it a soft delete - Automatically adds the soft delete flag to the filter for your queries, e.g.
.find, so you don’t need to make any changes to them - Recover soft deleted docs with
recoverAsynccollection method - Explicitly soft delete with
softRemoveAsynccollection method (optional) - Optionally add a
deletedAttimestamp - Compatible with Meteor
2.8.1+and3.0+
If you end up giving it a go or have ideas on how to make it better, let me know!