https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/database/security-rules.html
自定义了一个云数据库的collection安全规则,以实现让管理员可以更新其他人创建的记录。
{
"read": true,
"create": true,
"delete": "auth.openid == doc._openid",
"update": "auth.openid == doc._openid || auth.openid in get(`database.resident.${doc.residentId}`).manager"
}
小程序端的语句
这里提示更新记录为0,这个也是可以想通,是where 条件没有匹配上,但是我看文档里是可以实现的,请问是我哪里弄错了么?
1、红字这行删掉试试。