I am listening for changes on a particular child node (wallet) for all children in my firebase database.
when any of the wallet nodes across all the values in my database are modified I want to know about it and I want to execute a specific function
I require the parent node of the child (wallet) which was just modified
I have tried the following code
exports.executeFunction = functions.database.ref('/database/{pushId}/wallet').onWrite((change, context) => {
//execute my function
}
so for example, in the attached screenshot. when the value of wallet is modified in this instance I want to be able to get "rFA2VPdFpSSzdj4JzhmNFogW10x2" as a result as it is the parent node.
How do I go about doing this?
