It doesn't appear to be built-in to Meteor but is there an accepted way to track changes to a record/document? I can think of a number of ways to do this but am curious how others have accomplished this.
An example would be someone's location, if you wanted to track changes for a set period of time.
Thanks!
I haven't tested this package yet but it seems to track revisions and give the ability to restore older versions. I'm going to test it out now.
https://github.com/todda00/meteor-collection-revisions
Update: I can confirm that this package works in Meteor 1.3. It makes a complete copy of the document of the edited Meteor collection and stores it as an array within the document under "revisions". You can then restore any previous version using the revisionId
later on.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With