介面:資源

特性

__姓名__

非空規則.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)