介面:資源

屬性

__名稱__

非空值 rules.Path

完整的文件名稱,以路徑表示。

範例

// Check 'name' field from the document
resource
['__name__'] == /databases/(default)/documents/collection/document

資料

非空值 rules.Map

文件資料的地圖。

範例

// Check 'name' field from the document
resource
.data.name == 'John Doe'

id

非空值 rules.String

文件金鑰的字串

範例

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

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

更新時間:Aug 21, 2024

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

更新時間:Aug 21, 2024