I am writing an app to keep track of maintenance on aircraft. I am able to write the data to cloud firestore but I am having trouble retrieving the data. My database is essentially:
collection (“Aircraft Type”).document(“High Level maintenance requirement”).collection(userId).document(autogenerated ID-A ).collection(“Lower level maintenance requirement”).document(autogenerated ID-B).collection(dictionary of maintenance data).
I can retrieve the data from the lowest level document (autogenerated ID-B) individually, but I don’t understand how to retrieve data from all of the lower level documents (autogenerated ID-C, D, E, F, etc) at the same time. That is to say how can I retrieve all of the documents in a collection and their data?