<!-- 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; [push](./database.reference.push.md)

## Reference.push() method

<b>Signature:</b>

```typescript
push(value?: any, onComplete?: (a: Error | null) => any): ThenableReference;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  value | any |  |
|  onComplete | (a: Error \| null) =&gt; any |  |

<b>Returns:</b>

[ThenableReference](./database.thenablereference.md)

