Being a beginner with Firebase and TypeScript, I have been struggling to retrieve values from a reference other than the triggered value. Despite finding answers in JavaScript, I am working on writing functions using TypeScript for real-time database for Android.
Here is the link to an image of my database.
In the image above, I have written an OnCreate trigger in TypeScript at the node -
Trips / { uId } / { tId }
Whenever this trigger is activated, I wish to write data at the same location but under the node -
Cars / { carId }
Could someone please guide me on how to fetch data from a node other than the one that was triggered?
Thank you in advance.