Tracking changes in data with Firebase -
i'm interested in synchronized database paradigm championed firebase , others (couchbase sync gateway example). great job in replacing 80% of api does, storing , retrieving data. usually, that's not api does. while storing , retrieving data, doing non-data related stuff sending emails or push notifications. things, should able intercept data changes , when new record created, when existing record changed in way, or when record deleted. parse has great mechanism in cloud code (https://parse.com/docs/cloud_code_guide#functions-aftersave) couldn't find similar in firebase. did miss or thinking of wrong way?
firebaseref.on('child_changed', function(childsnapshot, prevchildkey) { // code handle child data changes. });
this article : https://www.firebase.com/docs/web/api/query/on.html child_change event
Comments
Post a Comment