0

This is my firebase data structure below

enter image description here

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?

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.