Back to Firebase Js Sdk

TransactionOptions interface

docs-devsite/firestore_lite.transactionoptions.md

12.12.1921 B
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

TransactionOptions interface

Options to customize transaction behavior.

<b>Signature:</b>

typescript
export declare interface TransactionOptions 

Properties

PropertyTypeDescription
maxAttemptsnumberMaximum number of attempts to commit, after which transaction fails. Default is 5.

TransactionOptions.maxAttempts

Maximum number of attempts to commit, after which transaction fails. Default is 5.

<b>Signature:</b>

typescript
readonly maxAttempts?: number;