Question on how Filter.or
works with inequality filter on multiple fields
#2071
Labels
api: firestore
Issues related to the googleapis/nodejs-firestore API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: question
Request for information or clarification. Not an issue.
Hi all, I need your help on understanding how
Filter.or
works with inequality filter on multiple fields.I have 3 matching documents for this query (Note that
foo.date
is firestore timestamp):And I have 0 document for this query:
And I’m expecting following query to return 3 documents but it returns 0:
Querying for this requires me to create following composite indexes:
And the query explain shows as following:
Isn’t
Filter.or
suppose to return document if either 1st or 2nd case matches?I tested this on
firebase-admin
atv12.1.1
andreact-native-firebase
atv20.0.0
but they all result the same.The text was updated successfully, but these errors were encountered: