SUPPOSE I HAVE THIS FIRESTORE DATABASE:
collection > document_1 > user > doc1 > field1: value1
field2: value2
///////////> document_2 > user > doc2 > field3: value3
SUPPOSE I HAVE THIS FIRESTORE DATABASE:
collection > document_1 > user > doc1 > field1: value1
field2: value2
///////////> document_2 > user > doc2 > field3: value3
If I understand your post correctly you want to access a specific subcollection of all documents. If so, you are looking for a collection group query, which reads documents from all collections with a specific name.
Accessing that in Python is (according to the documentation linked above) done with:
museums = db.collection_group(u'landmarks')\
.where(u'type', u'==', u'museum')
docs = museums.stream()
for doc in docs:
print(f'{doc.id} => {doc.to_dict()}')
So this would query across all documents in collections named u'landmarks
, no matter where in the database those collections exist.