google-cloud-firestore - 这可能是firestore错误吗?
问题描述
我尝试了许多不同的规则。但我收到权限错误。
但是,如果我添加此规则,它会起作用
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}
解决方案
我注意到了这一点。我遇到了 collectionGroup 函数的问题。
//权限错误
this.fs.collectionGroup('screts', ref => ref.where("uid", "==", uid));
// 没有任何错误。我正在获取数据
this.fs.doc('channels/zs2wJE3uBR62tqslJJe9').collection('screts').doc('scret_fields')
推荐阅读
- twitter-bootstrap - 如何使用 ViewChild 在 ngAfterViewInit 方法上打开模式?
- awk - 仅将大写单词转换为小写以取消名词的大写
- ffmpeg - 如何处理 ffplay 播放 iPhone 的视频太慢?
- javascript - 我们是否需要为所有不同的第三方脚本添加 noscript 标签
- rust - 为什么我会收到错误“没有为类型 Option 找到名为 collect 的方法”?
- r - 添加列名作为特定列的前缀
- c++11 - C++ 移动赋值运算符
- ios - 如何减少在 AR 中查看 .usdz 对象所需的内存?
- mongodb - MongoDB 从多个模型/模式查询并在一个字段中返回
- php - 如何替换替换 mcrypt_encrypt?