Firebase DatabaseReference filter by specified values

Viewed 13110

Lets suppose I have this firebase JSON structure:

example

And I need to get all the questions which have the atribute "from" equal to "this".

I know that I can use Volley to make a StringRequest and GET all values from my questions.json. Then, in the client side I could iterate over the response and remove the ones which don't have the correct atribute, but this would only work if I have a few questions. If I have millions of questions I would need to iterate over those millions of questions.

Is there any way I could put a filter on my request to get only the question with an attribute of my choice? (Ex: search questions.json where from == this)

2 Answers
Related