I use AngularFire & Cloud Firestore in my project and I need to make a query with multiple conditions(where) to a collection.
I tried to use this code but it's ignoring the second condition.
this.itemCollection = this.afs.collection<Item>('items', ref => {
return ref
.where('size', '==', 'large')
.where('brand', '==', 'some-brand')
})
this.items = this.itemCollection.valueChanges();
What am I doing wrong, how do I apply multiple conditions in AngularFire?