Pankaj
Pankaj

Reputation: 2558

How to implement the $in query in Firebase

I want a subset of users from all users, whose id is present in a list. In mongodb this would be done using the $in query. Not sure how to do this in Firebase. As there would be millions of users, it doesn't make sense to load all users and then filter them.

Upvotes: 0

Views: 238

Answers (1)

hiattp
hiattp

Reputation: 2336

You are looking for FirebaseIndex. From the github intro:

FirebaseIndex is a simple proxy that allows large Firebase data sets to be filtered, sorted, and retrieved by an index (a list of keys) http://zenovations.github.com/FirebaseIndex/

Upvotes: 1

Related Questions