Reputation: 1
I want to implement two where clauses in my flutter firestore query, so that they work as OR function. If any of the queries is true I want the result to show.
Upvotes: 0
Views: 527
Reputation: 3499
As the documentation states, Firestore DOES NOT HAVE an OR
operation on where
clauses. The closest you can come is 'in', which will check a single field against an array of values (up to 10 values). Otherwise, you will have to issue multiple queries and combine them in your application.
Please see current query operators supported.
Upvotes: 1