In my Firebase project I need to query all users who are available on a certain date at a certain city and sort by some other criteria.
Since we can't use multiple "array-contains" operations in one query, I tried the well known "map-trick" in Firestore, but now that I added ordering to the query, that's no longer an option.
let usersQuery = firestore.collection('Users')
.where('availableInAreaCodes.12345', '==', true)
.where('availableOnDates.2019-10-20', '==', true)
.orderBy('level', 'asc');
Any Ideas?