Reputation: 1208
This is my firebase data structure below
I know how to iterate bymonth but how can i iterate through each individual month and then access something inside the id -Kukj
etc. These ids are generated randomly so I need a way to be able to access them and then there contents inside. any ideas?
Upvotes: 0
Views: 80
Reputation: 600126
To iterate through the children of a node, use DataSnapshot.forEach()
. Since this itself returns another snapshot, you can use it to iterate structures arbitrarily deep.
Upvotes: 1