I have a React application which is using firebase as the back-end. Here is an snapshot of my data structure.
The numbers 1001, 1002, 1003 represent the ID of each entry. I'm looking to query this structure and return only the nodes whose city attribute is "Tarzana".
I have been able to grab all of the nodes from firebase and then iterate through them to select and store the ones that match my filter criteria into an array. However, I am almost certain there has to be a more efficient way as I shouldn't have to grab ALL of the data.
Could someone please point me in the direction of how to efficiently query my data with parameters.