📅  最后修改于: 2022-03-11 15:00:55.061000             🧑  作者: Mango
var params = {
TableName: 'users',
Key: {
'userId': '123'
},
UpdateExpression: 'SET isActive = :isActiveVal',
ConditionExpression: 'userId = :userIdVal and isActive <> :isActiveVal',
ExpressionAttributeValues: {
':userIdVal': '123',
':isActiveVal': 'false'
},
ReturnValues: "ALL_NEW"
};