DynamoDB update Item multi action

后端 未结 1 1314
被撕碎了的回忆
被撕碎了的回忆 2020-12-29 22:41

I am trying to update an item in DynamoDB table:

var params = {
        TableName: \'User\',
    Key: {
        id: \'b6cc8100-74e4-11e6-8e52-bbcb90cbdd26\',         


        
相关标签:
1条回答
  • 2020-12-29 23:21

    Please change the update expression as mentioned below. It should work.

    There is no comma between second ":inc" and SET.

    UpdateExpression : "ADD past_visits :inc, past_chats :inc  SET reset_time = :value",
    
    0 讨论(0)
提交回复
热议问题