Interfejs: zasób

Właściwości

__name__

niepusta wartość rules.Path

Pełna nazwa dokumentu jako ścieżka.

Przykład

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

dane

niepusta wartość rules.Map

Mapa danych dokumentu.

Przykład

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

id

niepusta wartość rules.String

Ciąg klucza dokumentu

Przykład

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.

Aktualizacja: 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.

Aktualizacja: Aug 21, 2024