how can make a query with or
Example:
select * from people where eyes ="Blue" or eyes ="Green"
I use Firestore and can make when "whereEqualTo" but I need that.
My code in Android now is:
db.collection("people")
.whereEqualTo("eyes","Blue");
how can make a query with or
Example:
select * from people where eyes ="Blue" or eyes ="Green"
I use Firestore and can make when "whereEqualTo" but I need that.
My code in Android now is:
db.collection("people")
.whereEqualTo("eyes","Blue");
If the Firestore Query documentation found here we have a section on limitations. There is an explicit coverage of OR.
It reads:
Cloud Firestore provides limited support for logical OR queries. The in and array-contains-any operators support a logical OR of up to 10 equality (==) or array-contains conditions on a single field. For other cases, create a separate query for each OR condition and merge the query results in your app.