【发布时间】:2021-09-03 14:31:30
【问题描述】:
我正在尝试在 firebase 云函数中创建尽可能多的逻辑,但不知道该怎么做!这是我想要完成的任务:
const myGroups = admin.firestore().collection('groups').find({"playerId":userId});
我知道上面是不正确的,但我似乎无法找到解决方案。我想将我所有的组放入一个数组或其他东西中并将它们发送回我的应用程序。
我不确定这是否明智?!?但是认为从一个地方而不是所有设备添加或更改脚本会更容易。
【问题讨论】:
标签: node.js firebase google-cloud-firestore google-cloud-functions