I have firestore recipe collection and my goal is to get a first document that matches this criteria:
kcal<800
carbs<100
fats<50
protein>60
I have just read firebase documentation and it seems that I can't perform a query that has range filters on multiple fields:
// this is invalid
const q = query(citiesRef, where("state", ">=", "CA"), where("population", ">", 100000));
Now I am being left in the dark, what do I do now, what are my options to achieve my aforementioned goal?