I want to retrieve documents from a Firestore collection in Flutter that match a specific list of IDs and have an updated date newer than the cached date stored on my device.
QuerySnapshot querySnapshot = await collection
.where(FieldPath.documentId, whereIn: documentIDs)
.where('updatedDate', isGreaterThanOrEqualTo: cachedDate)
.get();
I have verified that each where condition works correctly individually. The problem only arises when I use both where conditions together. How can I solve this problem?
Any help would be greatly appreciated.