Is there a way to read a nested collection in Firestore using Flutter? I have the following data structure
Users:
- userId:
- name: value,
- surname: value;
- addresses:
- addressId:
- street:value,
- city: value
I can read the first collection with the following code:
Firestore.instance.collection("users").document("userId")
.snapshots().listen((snapShot) {});
Is there a way for me to access the addresses from the code above or must I run another command that directly gets the addresses like below:
Firestore.instance.collection("users").document("userId").
collections("addresses").snapshots().listen((snapShot) {});