Here is the json structure I am using:
|-a
|--date1
|--uid1
|--uid2
|--date2
|--uid3
|--date3
|--uid1
I need to get uid1 for all dates. How ,to query for the same using firebase .
Here is the json structure I am using:
|-a
|--date1
|--uid1
|--uid2
|--date2
|--uid3
|--date3
|--uid1
I need to get uid1 for all dates. How ,to query for the same using firebase .
One way would be to duplicate your data structure like:
|-a
|--date1
|--uid1
|--uid2
|--date2
|--uid3
|--date3
|--uid1
|-a-uid1
|--date1
|--date3
This kind of duplication is quite common for NoSQL databases and it will provide you the best performance (query response time)