[null,null,["Last updated 2019-12-03 UTC."],[],[],null,["# Interface: Resource\n\n[rules](/docs/reference/rules/rules).[firestore](/docs/reference/rules/rules.firestore).Resource\n================================================================================================\n\ninterface static\n\nThe firestore document being read or written.\n\nProperties\n----------\n\n### __name__\n\nnon-null [rules.Path](/docs/reference/rules/rules.Path)\n\nThe full document name, as a path.\n\n#### Example\n\n // Check 'name' field from the document\n resource['__name__'] == /databases/(default)/documents/collection/document\n\n### data\n\nnon-null [rules.Map](/docs/reference/rules/rules.Map)\n\nMap of the document data.\n\n#### Example\n\n // Check 'name' field from the document\n resource.data.name == 'John Doe'\n\n### id\n\nnon-null [rules.String](/docs/reference/rules/rules.String)\n\nString of the document's key\n\n#### Example\n\n resource['__name__'] ==\n /databases/(default)/documents/collection/$(resource.id)"]]