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