【发布时间】:2019-09-01 09:19:20
【问题描述】:
我想通过文档获取所有集合,我不知道该怎么做我是firestore的新手。
Firebase.firestore()
.collection("reservations")
.doc(tripUid)
.get()
.then(doc => {
console.log(doc.doc.data());
}).catch(error => {
console.log("Error getting document:", error);
});
【问题讨论】:
-
Cloud Firestore 的客户端 SDK 中没有获取所有子集合列表的 API。见stackoverflow.com/questions/46596532/…
-
我在
Ab8F ... 8AJC文档下只看到一个集合。你在哪里说不止一个?
标签: javascript firebase react-native google-cloud-firestore