new EventStoreTransaction(transactionId, userCredentials, connection)
Parameters:
| Name | Type | Description |
|---|---|---|
transactionId |
number | |
userCredentials |
UserCredentials | |
connection |
EventStoreNodeConnection |
Properties:
| Name | Type | Description |
|---|---|---|
transactionId |
number |
- Source:
Methods
commit() → {Promise.<WriteResult>}
Commit (async)
- Source:
Returns:
- Type
- Promise.<WriteResult>
rollback()
Rollback
- Source:
write(eventOrEvents) → {Promise}
Write events (async)
Parameters:
| Name | Type | Description |
|---|---|---|
eventOrEvents |
EventData | Array.<EventData> |
- Source:
Returns:
- Type
- Promise