I have been trying to figure out how to update an item in dynamoDB but have not had any success.
I know how to add and item and remove an item but not update.
Here Is my code:
dynamoDB.updateItem({
"TableName": "mytable",
"Key": {
"thing_ID": {"S": "0000"}
},
"UpdateExpression": "SET",
"ExpressionAttributeNames": {
"SessionID": ""
},
"ExpressionAttributeValues": {
"SessionID": {
"S": "maybe this works",
}
}
})
See Question&Answers more detail:os