接口:资源

特性

__姓名__

非空规则.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

非空规则.String

文档密钥的字符串

例子

resource['__name__'] ==
  /databases/(default)/documents/collection/$(resource.id)