TransactionResult class Stay organized with collections Save and categorize content based on your preferences.
A type for the resolve value ofrunTransaction().
Signature:
exportdeclareclassTransactionResultProperties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| committed | boolean | Whether the transaction was successfully committed. | |
| snapshot | DataSnapshot | The resulting data snapshot. |
Methods
| Method | Modifiers | Description |
|---|---|---|
| toJSON() | Returns a JSON-serializable representation of this object. |
TransactionResult.committed
Whether the transaction was successfully committed.
Signature:
readonlycommitted:boolean;TransactionResult.snapshot
The resulting data snapshot.
Signature:
readonlysnapshot:DataSnapshot;TransactionResult.toJSON()
Returns a JSON-serializable representation of this object.
Signature:
toJSON():object;Returns:
object
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-19 UTC.