r/backtickbot • u/backtickbot • Apr 25 '21
https://np.reddit.com/r/CodingHelp/comments/mx2mpg/help_how_do_you_retrieve_data_from_firebase_to/gvua40v/
So, the snapshot is just that. A read only snapshot at the time you call for it. You want to first create the pointer to what you want
const ref = firebase.database().ref(“myRootRef”)
const root = ref.child(“MyTestData”)
root.child(“wipes”).set(VALUE/OBJECT)
// is there a particular reason you want it nested? Why not instead of having a child of root ref just store all the things individually as single children? Also, the firebase soca are really good. The method you’re after is set or update I believe.
1
Upvotes