April 2018
Intermediate to advanced
284 pages
6h 43m
English
We can create Cloud Functions, which can respond to Realtime database changes to execute certain tasks. We can create a new function for Realtime Database events with functions.database. To specify when the function gets executed, we need to use one of the event handlers that are available to handle different database events. We also need to specify the database path to which the function will listen for events.
Given here are the events that are supported by Cloud Functions:
onUpdate(): It triggers when data is updated in the Realtime Database