Based on Firebase documentation, one can create a cloud function to trigger when documents are added/updated/deleted on Firebase database through:
functions.database.ref('/messages/{pushId}/original').onUpdate();
However, using the Node.js admin SDK, when I call the following:
admin.database().ref("/messages/{pushId}/original").onUpdate();
It returns the error:
TypeError: admin.database(...).ref(...).onUpdate is not a function
What else we should do to get access to Firebase Realtime Database Triggers on Cloud Run or Kubernetes?