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.
2
solved HOW TO ACCES ALL DOCUMENT FROM SUBCOLLECTION OF ALL DOCUMENT IN PYTHON [closed]