0
我有以下使用php SDK的DynamoDB更新查詢。DynamoDB updateItem不起作用
$up = $this->dynamoDb->updateItem(array(
'TableName' => $this->dynamoTable,
'Key' => array(
'id' => array('S' => $id),
'time' => array('N' => $time)
),
//"ReturnValues" => 'UPDATED_NEW',
"UpdateExpression" => "SET #moderated = :val",
"ExpressionAttributeNames" => array(
"#moderated" => "changes_applied",
),
"ExpressionAttributeValues" => array(
':val' => array('N' => 1)
)
));
debug($up);
但它不工作。當我打印返回的結果時,我得到更新前的相同記錄。
任何人都可以幫我解決問題嗎?