【发布时间】:2021-06-13 08:50:11
【问题描述】:
以下是我在firestore中保存用户的geohash和geopoint的方式。
我的问题是我不知道如何从 firestore 检索 g.geohash 或 g.geopoint。
比如我想读取字段intro,我这样写代码;
FirebaseFirestore.instance.collection('...').doc(..).data()['intro']
但我不知道如何从 Firestore 中检索 g.geohash 和 g.geopoint。 g.geohash 在地图内,g.geopoint 是地图内的数组。如何从我的 Firestore 中检索像 g.geohash 和 array-inside-a-map 字段 g.geopoint 这样的地图字段?
【问题讨论】:
标签: arrays flutter dictionary google-cloud-firestore get