I am trying to build a food delivery app, I have created a screen where people can choose area name. These area names are already in my database. So the respective restaurants to be shown in the homepage as per the area chosen. How should i do this?
You need to create a relationships
- Create a relationship between area collection & users collection
- Create a relationship between area collection & food/restaurant collection
- Then on the list apply filter - Current food/restaurant > area name
containsLogged in the user area name
Hope this helps