Options for creating a new transaction.
ReadOnly
Options for a transaction that can only be used to read documents.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field consistency_selector . The consistency mode for this transaction. If not set, defaults to strong consistency. consistency_selector can be only one of the following: |
|
read |
Reads documents at the given time. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
ReadWrite
Options for a transaction that can be used to read and write documents.
Firestore does not allow 3rd party auth requests to create read-write. transactions.
JSON representation |
---|
{ "retryTransaction": string } |
Fields | |
---|---|
retry |
An optional transaction to retry. A base64-encoded string. |