In this question Firebase Firestore - OR query they said there is no OR query. This means I can\'t easily query for items that have an ID that is in an array I got earlier.
You could combine the Observables using rxjs;
orQuery(){
const $one = this.afs.collection("items", ref => ref.where("itemId","==","1")).valueChanges();
const $two = this.afs.collection("items", ref => ref.where("itemId","==","3")).valueChanges();
return combineLatest($one,$two).pipe(
map(([one, two]) => [...one, ...two])
)
}
getOr(){
this.orQuery().subscribe(data => console.log(data))
}