jam:archive is an easy way to add an archive mechanism to your app. It’s an alternative to soft deletes. When a document is archived, it’s removed from its original collection and placed in an archive collection so that it can be restored if needed. Its key features are:
- Zero config needed (though you can customize)
- Isomorphic so that it works with Optimistic UI
- Automatically overrides
removeAsync
to perform an archive (can be turned off) - Explicitly archive with
archiveAsync
collection method (optional) - Restore archived docs with
restoreAsync
collection method - Optionally exclude specific collections
- Compatible with Meteor
3.0.2+
- Seamless integration with
jam:offline
If you end up giving it a go or have ideas on how to make it better, let me know!