我喜欢使用 firestore 云函数来计算子集合中的文档数量。
我的数据库如下所示: groups/{groupId}/members/{memberId}
我喜欢计算每个组的成员数量(memberId)。这意味着每个组可以有不同数量的成员,并且可以灵活地增加或减少。
我会对你的想法感到高兴:-)。
firebase google-cloud-platform google-cloud-functions google-cloud-firestore
firebase ×1
google-cloud-firestore ×1
google-cloud-functions ×1
google-cloud-platform ×1