I am using Flutter and Firebase Firestore and I want to query a collection group, but I only want the children of specific documents in Firestore.
I've tried querying all of the "parent" documents, then iterating over them checking for the conditions I'm looking for, and creating another Firestore query using that specific document ID, but this is very slow to do.
I have a collection called "Shops", and within "Shops" there is a field called "logoColour" and a sub-collection called "Customers". Each "Customers" document has several fields, but the one I'm interested in is "height"
What I want to do is create a query for the subcollection "Customer" where Customer[height] > 5", where Shops[logoColour] == "yellow"
The only similar post I could find is Firestore query subcollection and parent document which is dated 2021 and in Typescript
Is this possible in Flutter?