الواجهة: المورد

أماكن إقامة

__الاسم__

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