RunTransactionParams Interface
The parameters for the RunTransaction API. \
To use, import via fluid-framework/alpha
.
For more information about our API support guarantees, see here.
This type is "input," meaning that code outside of the library defining it should not read from it. Future versions of this type may add optional members or make typing of members more general.
Signature
export interface RunTransactionParams
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
preconditions | Alpha |
optional , readonly |
readonly TransactionConstraint[] | An optional list of constraints that are checked just before the transaction begins. If any of the constraints are not met when runTransaction is called, an error will be thrown. If any of the constraints are not met after the transaction has been ordered by the service, it will be rolled back on this client and ignored by all other clients. |
Property Details
preconditions
An optional list of constraints that are checked just before the transaction begins. If any of the constraints are not met when runTransaction
is called, an error will be thrown. If any of the constraints are not met after the transaction has been ordered by the service, it will be rolled back on this client and ignored by all other clients.
For more information about our API support guarantees, see here.
Signature
readonly preconditions?: readonly TransactionConstraint[];
Type: readonly TransactionConstraint[]