Skip to content

Commit

Permalink
updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbarbour committed Dec 22, 2023
1 parent f87b97b commit 32669b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,13 @@ const result = await testTable
# Transactional Writes
```typescript
const result = await transactionTable
.transaction
.put({
item: { identifier: '777', count: 1, description: 'some description' },
condition: compare => compare().description.notExists
})
.then(
transactionTable.update({
transactionTable.transaction.update({
key: { identifier: '777-000' },
increments: [{key: 'count', start: 0}],
updates: { count: 5 }
Expand Down

0 comments on commit 32669b8

Please sign in to comment.