db:
users
---key1
---key2
---key3
---key4
var array = [key1,key2,key4]
how do I write a query to retrieve key1, key2 and key4 and not key3 since it is not in array? I was doing this by pulling all keys and fetching it in client side.
SELECT * FROM users WHERE id IN (1,2,4), so you'll have to load each user with a separate call. This isn't nearly as slow as most developers think, because Firebase pipelines the requests: stackoverflow.com/questions/35931526/…. If you're having problems loading the users, update your question to show the minimal code that reproduces where you are stuck. - Frank van Puffelen