TransactionResult class

A type for the resolve value ofrunTransaction().

Signature:

exportdeclareclassTransactionResult

Properties

PropertyModifiersTypeDescription
committedbooleanWhether the transaction was successfully committed.
snapshotDataSnapshotThe resulting data snapshot.

Methods

MethodModifiersDescription
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.