[英]AWS SDK v3 TransactWriteItemsCommand TypeError: Cannot read property '0' of undefined
I am trying to use TransactWriteItemsCommand to work using the new AWS SDK V3 for NodeJS.我正在尝试使用 TransactWriteItemsCommand 来使用适用于 NodeJS 的新 AWS SDK V3。 Unfortunately I can't find an example and the docs are not really well documented yet.不幸的是,我找不到一个例子,而且文档还没有很好的记录。
This is my params object:这是我的参数 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!任何帮助,将不胜感激!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.