Cloud firestore rules using exist() does it count as a read?

回眸只為那壹抹淺笑 提交于 2020-06-17 16:20:40

问题


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?


回答1:


Yes, exists() counts as a read toward your billing. They also count against the max number of reads you can perform per request.



来源:https://stackoverflow.com/questions/55257311/cloud-firestore-rules-using-exist-does-it-count-as-a-read

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!