简体   繁体   中英

How to retrieve all the collection's and sub collection's document in a single fetch from cloud firestore for android

Following is path from where I want to retrieve all of data present in different documents.

/EAT(collection)/eat/Celebrity(collection)/celebrity/Actor(collection)

And there are different sub-collections instead of Celebrity like sports person and others.And also sub-collections like actress instead of Actor. So I want to fetch all the data from all documents at a time using loop or iterator in Android Java.

Queries in Firestore are shallow: they only get items from the collection that the query is run against. There is no way to get documents from a top-level collection and subcollections in a single query.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM