I am storing data in firestore in the format
feed: { userID, title, description, ..., hideFor[userID] }
I want to query feeds such that loggedin user should not see the feed if his/her id is listed in hideFor[] array. Which firestore query method/operator can help me in this?
You want to use the in operator
https://firebase.google.com/docs/firestore/query-data/queries#in_and_array-contains-any
If you use angular/fire then it would be something along like
this.afs.collection('feed', q=> { return q.where( userId, 'in','hideFor'})
edit: realized you wanted not in then the operator is not-in but same pattern