The last part of the DatabaseReference's path.For example, "ada" is the key for https://<DATABASE_NAME>.firebaseio.com/users/ada.The key of a root DatabaseReference is null.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-07-22 UTC."],[],[],null,["# DatabaseReference interface\n\nA `DatabaseReference` represents a specific location in your Database and can be used for reading or writing data to that Database location.\n\nYou can reference the root or child location in your Database by calling `ref()` or `ref(\"child/path\")`.\n\nWriting is done with the `set()` method and reading can be done with the `on*()` method. See \u003chttps://firebase.google.com/docs/database/web/read-and-write\u003e\n\n**Signature:** \n\n export declare interface DatabaseReference extends Query \n\n**Extends:** [Query](./database.query.md#query_interface)\n\nProperties\n----------\n\n| Property | Type | Description |\n|-------------------------------------------------------------------|------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [key](./database.databasereference.md#databasereferencekey) | string \\| null | The last part of the `DatabaseReference`'s path.For example, `\"ada\"` is the key for `https://\u003cDATABASE_NAME\u003e.firebaseio.com/users/ada`.The key of a root `DatabaseReference` is `null`. |\n| [parent](./database.databasereference.md#databasereferenceparent) | [DatabaseReference](./database.databasereference.md#databasereference_interface) \\| null | The parent location of a `DatabaseReference`.The parent of a root `DatabaseReference` is `null`. |\n| [root](./database.databasereference.md#databasereferenceroot) | [DatabaseReference](./database.databasereference.md#databasereference_interface) | The root `DatabaseReference` of the Database. |\n\nDatabaseReference.key\n---------------------\n\nThe last part of the `DatabaseReference`'s path.\n\nFor example, `\"ada\"` is the key for `https://\u003cDATABASE_NAME\u003e.firebaseio.com/users/ada`.\n\nThe key of a root `DatabaseReference` is `null`.\n\n**Signature:** \n\n readonly key: string | null;\n\nDatabaseReference.parent\n------------------------\n\nThe parent location of a `DatabaseReference`.\n\nThe parent of a root `DatabaseReference` is `null`.\n\n**Signature:** \n\n readonly parent: DatabaseReference | null;\n\nDatabaseReference.root\n----------------------\n\nThe root `DatabaseReference` of the Database.\n\n**Signature:** \n\n readonly root: DatabaseReference;"]]