Mariam Syafiqah Saidi
Mariam Syafiqah Saidi

Reputation: 35

How to save to Firebase under existing child

below is my Requests table which contain 'drinks' and '0' (0 equal to quantity of drink). However, I need to save some more data under 'drink'>'0'>'topping'.

Do you guys have any ides on how do I save data into 'topping' using database.getReference("topping");

enter image description here

Thanks in advance

Upvotes: 0

Views: 35

Answers (1)

Bjorn Tutoriais
Bjorn Tutoriais

Reputation: 26

Use the child after getReference()

 database.getReference.child(1511377584775).child(drink).child("topping");

Upvotes: 1

Related Questions