Hi all
I am making an application which would have a collection of posts displayed to the user according to the user area. User can select the area and then can see all posts in that area (suburb/city).
How should I arrange data in firebase so that I can load data accordingly without doing much filtering? Should I arrange it like
{
3000:{
title:"",
description:"",
city:"Melbourne"
country:"Australia"
}
3001:{
....
}
}
Where 3000 is the postcode of Melbourne.