<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/database](./database.md) &gt; [Reference](./database.reference.md) &gt; [key](./database.reference.key.md)

## Reference.key property

The last part of the `Reference`<!-- -->'s path.

For example, `"ada"` is the key for `https://<DATABASE_NAME>.firebaseio.com/users/ada`<!-- -->.

The key of a root `Reference` is `null`<!-- -->.

<b>Signature:</b>

```typescript
readonly key: string | null;
```
