Skip to content Skip to sidebar Skip to footer

How Do I Get To A Specific Node In Google Cloud Function From Within A `onwrite` Function Triggered By Another Node Event?

When creating a new node, I want to create and push that same data into a different node. The Door/111111111111/ins node is the node I am pushing the new data into: root: { doo

Solution 1:

child() is a method on Reference that returns another Reference object. Reference doesn't have a val() method because it doesn't contain any data. It's just a reference.

To get data outside the location of the database trigger, you need to query Realtime Database for it. Use the once() method for that. This is extremely common, and you should be able to use samples and documentation to figure out what you need to do.

Post a Comment for "How Do I Get To A Specific Node In Google Cloud Function From Within A `onwrite` Function Triggered By Another Node Event?"