0

The equivalent in SQL would be this:

SELECT * FROM Jobs WHERE uid=:uid AND status=:active

In firebase I have this so far:

var myJobs = jobs.orderByChild('uid').equalTo(userID);

I need to also filter by status, I was wondering what the best way to do that is?

Jordash
  • 2,926
  • 8
  • 38
  • 77
  • 1
    Firebase allows only one `orderBy` on a query. This has been asked before, to I'll mark this as a duplicate. – Frank van Puffelen Apr 24 '15 at 18:44
  • possible duplicate of [How to do the following query in Firebase? (more than one where condition)](http://stackoverflow.com/questions/27432030/how-to-do-the-following-query-in-firebase-more-than-one-where-condition) – Frank van Puffelen Apr 24 '15 at 18:51

0 Answers0