exports.eventOnUpdate = functions.firestore //
.document('collection') //
.onUpdate(async (snap, context) => {
// code here
})
I have multiple collections and subcollections, I need to watch for updates to them in Cloud Functions, to make writes elsewhere. I've scaffolded similar to above.
Am I relegated to defining each onUpdate separately and having them call an external JS function?
Or is there a syntax to watching a group of collections under a single onUpdate?