Hi
I am trying to make an app where you can find a buddy to play by searching with zip code and interest. So that, children of near by area with similar interest gets displayed in the form of a list. I am unable to understand how to do it. Below mentioned is the structure of my database in which it is saved.
From your data structure, you are saving the children’s data under a key which is the zip code. if this assumption is correct then you can get the zip code keys as a list by using get object properties block. Once you have it as a list then use does list .... contain .... to shortlist only the zip code of the logged in child. From here you search the names under the selected zip code the same way you did previously.
I tried the same with the below mentioned block but not getting the zip code. This code gives me answer as “User, Children_info, User, Children_info” , User. I am unable to skip user folder and go to zipcode which is inside Children_info.
I am filling 7760 only not 07760. Moreover, what code should I use two get the name of the children as per the zipcode and interest entered by the user. I am unable to get the logic for that.
I’m not sure. I only saw part of your data. To answer, I need to see your data. Go to Firebase, open your Realtime DB and use the right side menu to export your data to a file then share it here if you think the data is not private or send it to me as a PM.
I need to see the full structure to be able to give you a meaningful answer.