【发布时间】:2020-03-20 23:22:09
【问题描述】:
我有一个问题,我无法从文档中获取子集合: 我有firestore db 集合:集合名称 内部集合文档和内部一个文档子集合“项目”
- 集合名称
- 文档1
- 项目
- 项目1
- 项目2
- 文档1
我使用以下代码,但无法从我的数据库中检索项目子集合....`
```
QuerySnapshot snapshot = await Firestore.instance
.collection('collectionName')
.orderBy("order")
.getDocuments();
```
`then`
```
snapshot.documents.forEach((document) {})
```
文档没有项目子集合
【问题讨论】:
标签: flutter google-cloud-firestore