Giao diện: Tài nguyên

Của cải

__tên__

quy tắc không null.Path

Tên tài liệu đầy đủ, dưới dạng đường dẫn.

Ví dụ

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

dữ liệu

quy tắc không null.Map

Bản đồ dữ liệu tài liệu.

Ví dụ

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

nhận dạng

quy tắc không null.String

Chuỗi khóa của tài liệu

Ví dụ

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