【发布时间】:2018-09-11 16:01:48
【问题描述】:
有没有什么方法可以使用 Cloud Firestore javascript Web 库从集合(或子集合)中一次性获取所有文档 ID(作为单次读取)?我不想阅读他们的内容,我只需要 id-s。据我所知,Chrome var docs = (await firebase.firestore().collection("collection-path").get()).docs.map(x => x.id) 将检索包含在内的内容。当我在谈论一个大型集合时,它需要相当长的时间,即使它会计算一次读取操作,这也不是一个选项。
【问题讨论】:
标签: javascript google-cloud-firestore