規則。火庫。資源
介面靜態
正在讀取或寫入的 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)