规则中文档的Firestore读取属性

时间:2018-07-31 15:20:55

标签: firebase get google-cloud-firestore firebase-security-rules

我在读取Firerestore文档中的属性的获取路径时遇到问题

代码:

match /testDocument/{id} {
  allow read: if getData().attr = false;
  allow write;
}

function getData() {
   return get(/databases/$(database)/documents/docName/PdAzzxJOyp30UxRlmjJ3).data
}

和文档存储区

Document Firestore

0 个答案:

没有答案