Filter many data at the same time from firebase

Hi!

I know how to filter data by one thing as filter cars object by address

but how could I filter data by two or more things as filter cars object by address + type of car + time of work?

my solution which I think about is getting all data in array[object] and with if I could filter them
and save them in arrayFiltered[object]!

@abdallah.nsir Thanks very much for your question!

I did some digging into your question, and found out that there are different ways of doing this:

  1. What you can do is execute one orderBy().startAt()./endAt() on the server, pull down the remaining data and filter that in Swift in your app.

  2. An interesting third party solution I found to your problem is QueryBase, an open source tool created precisely to solve your problem :slight_smile:

I hope this helps!

All the best!

This topic was automatically closed after 166 days. New replies are no longer allowed.