We are using Firestore database. In our Car List we have different Brands. Each of the brands has the same attributes with different values. We want to filter the car and one or more attributes. We dont want to download all the data and filter on client side.
We have already tried using the following code:
constructor(
private afs: AngularFirestore
)
....
return new Promise<CarModel>((resolve, reject) => {
var carCollection = this.afs.collection<Car>('Cars', ref =>
ref
.where('Driver', '==', 'Man')
.where('Location', '==', 'Switzerland'));
We would like to have a list with multiple entries and the same attributes driver and location we've filtered.