如何在Firestore中检索“相关”文档?Nodejs Express.js
发布于 2022-03-11 20:11:23
如果相关文档是指Firestore中的“引用”数据类型,则可以使用get方法从Firestore检索它,就像检索单个文档时所做的那样。
myDoc.referencedDocument.get().then(result => {
const data = result.data();
// 'data' will contain the referenced document
})https://stackoverflow.com/questions/71441533
复制相似问题