0

I want to get posts from a particular group of users.

So I need a query like this:

postCollectionRef.whereValueInArray("by_uid", userList).get();

Basically only getting posts which have the field "by_uid" in userList. Is there any way to achieve this?

iitum studant
  • 856
  • 2
  • 8
  • 24
  • 1
    Can you add more code and examples? Like you can start with sharing your current schema – ccoeder Apr 14 '19 at 13:28
  • There is no support for specifying multiple values in a `whereValueInArray`. See https://stackoverflow.com/questions/52837711/firestore-multiple-array-contains – Frank van Puffelen Apr 14 '19 at 14:24
  • I believe you are asking how to perform an OR query; retrieve posts from user 0 or user 1 or user 2... There are a number of questions very similar to this with a variety of answers [Firestore OR Query](https://stackoverflow.com/search?q=%5Bfirestore%5Dor+query) so I am marking as duplicate.. – Jay Apr 17 '19 at 17:33

0 Answers0