I'm tring to use multiple "where" filters on Firestore query, My query is based on the above example.
My query:
let colRef = firebase.firestore().collectionGroup('volumes')
colRef = colRef.where('days', 'array-contains', day)
colRef = colRef.where('start_time', '<=', time)
colRef = colRef.where('end_time', '>', time)
colRef = colRef.where('volume', '>', 0)
const snapshot = await colRef.get()
I'm receiving the above error:
Error: 3 INVALID_ARGUMENT: Cannot have inequality filters on multiple properties
I have checked about compounding Firestore queries and I found out that:
You can perform range (<, <=, >, >=) or not equals (!=) comparisons only on a single field
It's a huge limitation to Firestore queries. Am I missing an another option to implement that query?
Thanks!