在我的项目中,我希望通过检查用户的uid是否是该文档的子集合(包含该文档的所有成员)的一部分来控制对文档的访问。当我想用exists()方法检查它时,它不会在应该授予权限的情况下授予权限。
match /events/{season}/events/{code} {
function isVV (season, code) {
return exists(/databases/$(database)/documents/events/$(season)/events/$(code)/vv/$(request.auth.uid));
}
allow rea
我正在努力提高与谷歌云数据存储运行的应用程序的性能。应用程序本身将按如下顺序运行查询:
Select * from table where type = "role" and roleId ="admin"
Select * from table where type = "role" and roleId ="editor"
Select * from table where type = "role" and roleId ="reader"
Select * from table where