Reputation: 558
I am trying to use TransactWriteItemsCommand to work using the new AWS SDK V3 for NodeJS. Unfortunately I can't find an example and the docs are not really well documented yet.
This is my params object:
{
"TransactItems": [
{
"Update": {
"TableName": "boxes",
"Key": {
"id": "36"
},
"UpdateExpression": "set isOpen = :isOpen",
"ExpressionAttributeValues": {
":isOpen": {
"BOOL": true
}
}
}
},
{
"Update": {
"TableName": "boxes",
"Key": {
"id": "33"
},
"UpdateExpression": "set isOpen = :isOpen",
"ExpressionAttributeValues": {
":isOpen": {
"BOOL": true
}
}
}
}
]
}
What I'm doing wrong? Any help would be appreciated!
Upvotes: 3
Views: 1711