<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/database](./database.md) &gt; [Database](./database.database.md) &gt; [ref](./database.database.ref.md)

## Database.ref() method

<b>Signature:</b>

```typescript
ref(path?: string | Reference): Reference;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  path | string \| [Reference](./database.reference.md) |  |

<b>Returns:</b>

[Reference](./database.reference.md)

