I'm considering letting users follow other users in a app, and would have a feed of posts from people who they follow.
Is there a way to query multiple 'where' statements at once, or compare to a List? Or would a alternate route need to be taken?
Here is a example scenario in NodeJS:
var usersFollowed = ['GKXgK2CPPGPQjmQ3Lsrh', 'cBjzo3MSjjaOHksVmO0o', 'tc9gMwZR9SiyjWonyCWF'];
var followingPosts = await db.collection('posts').where('posterUID', '==', usersFollowed.Any()).get();
(.Any() is made up and what I would like to do)
Here is a example of a post's document in Firestore:
postID
caption: 'a picture of something'
type: 'picutre'
size: 1
posterUID: GKXgK2CPPGPQjmQ3Lsrh