veritatisdoloremque
Version:
Monorepo for the Firebase JavaScript SDK
29 lines (19 loc) • 825 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) > [transaction](./database.reference.transaction.md)
## Reference.transaction() method
<b>Signature:</b>
```typescript
transaction(
transactionUpdate: (a: any) => any,
onComplete?: (a: Error | null, b: boolean, c: DataSnapshot | null) => any,
applyLocally?: boolean
): Promise<any>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| transactionUpdate | (a: any) => any | |
| onComplete | (a: Error \| null, b: boolean, c: [DataSnapshot](./database.datasnapshot.md) \| null) => any | |
| applyLocally | boolean | |
<b>Returns:</b>
Promise<any>