2

I am are working on firebase with iOS swift 3 application. And I don't find a good documentation about where like queries in firebase official doc. Following are the criteria to be filter user data from the all user tree.

My firebase tree:

enter image description here

Following is the filter screen that needs to be applied on one query to fetch user by query.

enter image description here

Can anyone suggest me the things or logic how to perform that kind of query. I know there is sortBy method but that perform only one filter at a time. Kindly suggest something.

Thanks.

AL.
  • 36,815
  • 10
  • 142
  • 281
Nitin Gohel
  • 49,482
  • 17
  • 105
  • 144
  • Firebase Database queries can only order/filter on one property. In some cases you may be able to combine the values you want to order/filter on into a single property (see [my answer here](http://stackoverflow.com/questions/26700924/query-based-on-multiple-where-clauses-in-firebase)). But even that can only support a single range condition. Since you have two range conditions in your UI, I expect the query won't be possible on Firebase. – Frank van Puffelen May 15 '17 at 14:14

0 Answers0