I have a firestore structure for a collection called 'chartites' containing categories with records. The structure is the following:
Collection(Charities) -> Document("categories") -> Collection(Records) -> Document(ID) -> fields (with data)
My question is:
How do I get the fields for a given ID, without querying each category (document), with a "single" query.
I.e.: I want to retrieve the data for the record (document) with ID: FC9tH5rABCsqh5kunMND (top of the list for the charity category 'animals')
I have tried to do: db.collection('charities').where('id', '==', 'FC9tH5rABCsqh5kunMND') - but can't seem to make this work.