【发布时间】:2023-03-08 23:36:02
【问题描述】:
我在 Firebase Firestore 中有一个子集合的路径:Team/TeamName/Meetings/First/Data。我想知道是否有任何方法可以根据第一个文档(父文档)中的值(字段)获取数据子集合中的文档。
我试过了:
db.collection("Team")
.doc("TeamName")
.collection('Meetings').where('0', '==', "some data")
.where('3', '==', "doc data")
.where('4', '==', "something in textfiel").collection("Data")
但是这种方法行不通。
【问题讨论】:
标签: javascript firebase google-cloud-firestore