使用exist()的Cloud Firestore规则是否算作读取? [英] Cloud firestore rules using exist() does it count as a read?
本文介绍了使用exist()的Cloud Firestore规则是否算作读取?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在存储被阻止用户的文档集合. 我通过检查电子邮件是否存在于被阻止的集合中来检查请求是否来自被阻止的用户
I am storing a collection of documents of blocked users. I am checking if the request is from a blocked user or not by checking if the email exist within the blocked collection
allow read: if exists(/databases/$(database)/documents/blocked/$(request.auth.token.email)) == false;
是否将文档是否存在视为已读?
does checking if the document exist count as a read?
推荐答案
是的,exists()
被视为您帐单的读取内容.它们还会计入每个请求可以执行的最大读取次数.
Yes, exists()
counts as a read toward your billing. They also count against the max number of reads you can perform per request.
这篇关于使用exist()的Cloud Firestore规则是否算作读取?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文