<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/database](./database.md) &gt; [ListenOptions](./database.listenoptions.md) &gt; [onlyOnce](./database.listenoptions.onlyonce.md)

## ListenOptions.onlyOnce property

Whether to remove the listener after its first invocation.

<b>Signature:</b>

```typescript
readonly onlyOnce?: boolean;
```
