f-miyu / Plugin.CloudFirestore

MIT License
121 stars 44 forks source link

WhereIn query on FieldPath.documentId() fails #67

Closed Bip901 closed 3 years ago

Bip901 commented 3 years ago

Trying to run a WhereIn query on the document Id fails and shows the following message:

Invalid query. When querying with FieldPath.documentId() you must provide a valid String or DocumentReference, but it was of type: java.util.HashMap

This is an issue with Firestore that was fixed in March according to the linked github issue, but it still happens in this library.

Bip901 commented 3 years ago

This was a mistake on my part. I sent a custom object instead of a string.