I have an issue, I can't get subcollection from the document: I have firestore db with collection: collectionName Inside collection documents and inside one document subcollection "items"
- collectionName
- Document1
- Items <- subcollection
- Item1
- Item2
- Items <- subcollection
- Document1
I use the following code but the items subcollection can't be retrieved from my db....`
```
QuerySnapshot snapshot = await Firestore.instance
.collection('collectionName')
.orderBy("order")
.getDocuments();
```
`then`
```
snapshot.documents.forEach((document) {})
```
The document doesn't have the items subcollection