【发布时间】:2021-10-05 05:20:54
【问题描述】:
如果我们有这样的集合:
Courses:
Math:
id: 1001
students: [
{id: 100, name: "Alex"},
{id: 101, name: "mark"}
]
Physics:
id: 1002
students: [
{id: 100, name: "Alex"},
{id: 103, name: "arnold"}
]
我们如何获得特定学生的所有课程? 例如将所有课程分配给 Alex。
【问题讨论】:
-
我认为这篇 How to update an array of objects in Firestore? 的文章可以添加更多信息,如果需要,可以添加关于搜索和更新的信息。
标签: android firebase kotlin google-cloud-firestore