voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
18 lines (10 loc) • 532 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/database](./database.md) > [Reference](./database.reference.md) > [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;
```