规则。火库。资源
接口静态
正在读取或写入的 firestore 文档。
特性
__姓名__
非空规则.Path
完整的文档名称,作为路径。
例子
// Check 'name' field from the document
resource['__name__'] == /databases/(default)/documents/collection/document
数据
非空规则.Map
文档数据的映射。
例子
// Check 'name' field from the document
resource.data.name == 'John Doe'
ID
文档密钥的字符串
例子
resource['__name__'] ==
/databases/(default)/documents/collection/$(resource.id)