i want to ask a question related to firestore queries swift. I have firestore structure as below:
currently i develop a search system, where user can filter min and max persons per team. below are the queries for .collection("team")
Firestore.firestore().collection("team")
.whereField("min", isGreaterThanOrEqualTo : filterMin)
.whereField("max", isLessThanOrEqualTo : filterMax)
Expected: if user place filterMin = 0 and filterMax = 600 data for team1 and team2 will displayed, if user place filterMin = 3 and filterMax = 500, only data for team2 will displayed.
But the problem is if i using the code above, i got an error as below
'Invalid Query. All where filters with an inequality (lessThan, lessThanOrEqual, greaterThan, or greaterThanOrEqual) must be on the same field. But you have inequality filters on 'min' and 'max''
I have already read the documentation, but it seems does not help me much. I am still new in swift development and firebase. thanks for helping me.

Cloud Firestoredoes not allow you do that level of filtering at present. A workaround may be to run the first.whereFieldquery, and then once you have your documents, filter your array for the second query.