使用exists()的Cloud firestore规则是否算作读取?

问题描述 投票:0回答:1

我正在存储被阻止用户的文档集合。我通过检查被阻止的集合中是否存在电子邮件来检查请求是否来自被阻止的用户

allow read: if exists(/databases/$(database)/documents/blocked/$(request.auth.token.email)) == false;

检查文件是否存在被视为读取?

google-cloud-firestore firebase-security-rules
1个回答
0
投票

是的,exists()算作对您的结算的读数。他们也反对max number of reads you can perform per request

© www.soinside.com 2019 - 2024. All rights reserved.