You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Firebase安全规则:resource.data存在但字段读取返回null问题求助

Firebase安全规则问题排查

需求:校验Messaging集合中的Last字段不为空或等于指定值,编写的Firebase安全规则如下:

match /Messaging/{userId} {
   allow read: if resource.data.Last != null;
}

问题:resource.data本身不为null,但读取其中的Last字段时返回null,导致上述规则无法正常生效。(附集合截图:Messaging集合数据截图)

内容的提问来源于stack exchange,提问作者Alex Minasyan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.14 01:25:28