I would like a trigger to capture Inserts & Updates to a collection. Using the Atlas UI, I have enabled one, followed the drop downs and other configs, and in the code box, only entered:
exports = function(changeEvent) {
console.log(JSON.stringify(changeEvent.fullDocument));
};
I would obviously like to do more with it than this.
Nothing appears in either:
- Triggers > Overview > Logs
- Drilling into the hosted Realm app for the same triggers, under Manage > Logs
I have updated a doc using the Atlas UI and through a PHP page. Updates have been verified.
Any other setup needed? Any thing else to check or set?