Antarmuka: Resource

Properti

__nama__

rules.Path non-null

Nama dokumen lengkap, sebagai jalur.

Contoh

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

data

rules.Map non-null

Peta data dokumen.

Contoh

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

id

rules.String non-null

String kunci dokumen

Contoh

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