How to create a logical OR query in Cloud Firestore with the JavaScript SDK?
Nov 7 · 2 min read
With Cloud Firestore, we can combine multiple where() methods to create logical AND queries. These queries are called compound queries in the documentation.
However, as indicated in the documentation (Section “Query Limitations”):
Cloud Firestore does not support the following types of queries:
- …
- LogicalORqueries. In this case, you should create a separate query for eachORcondition and merge the query results in your app.
- …


