Error executing "UpdateItem" on "https://dynamodb.ap-southeast-1.amazonaws.com"; AWS HTTP error: Client error: POST https://dynamodb.ap-southeast-1.amazonaws.com resulted in a 400 Bad Request response:{"type":"com.amazon.coral.validate#ValidationException","message":"An operand in the update expression has an incorrec (truncated...)ValidationException (client): An operand in the update expression has an incorrect data type - {"type":"com.amazon.coral.validate#ValidationException","message":"An operand in the update expression has an incorrect data type"}
can anyone help, how do I update the data to add new values?
or tell me how to create direct query to dynamo with this library?
sorry for my english
I try to update data
SET myNumber = myNumber + :increment
in raw query like thisDynamoDb::table(myTable)
->setKey(DynamoDb::marshalItem(['id' => myId]))
->setUpdateExpression('SET #myNumber = #myNumber + :increment')
->setExpressionAttributeName('#myNumber', 'myNumber')
->setExpressionAttributeValue(':increment', DynamoDb::marshalValue(1))
->prepare()
->updateItem()
and I got this issue
Error executing "UpdateItem" on "https://dynamodb.ap-southeast-1.amazonaws.com"; AWS HTTP error: Client error:
POST https://dynamodb.ap-southeast-1.amazonaws.com
resulted in a400 Bad Request
response:{"type":"com.amazon.coral.validate#ValidationException","message":"An operand in the update expression has an incorrec (truncated...)ValidationException (client): An operand in the update expression has an incorrect data type - {"type":"com.amazon.coral.validate#ValidationException","message":"An operand in the update expression has an incorrect data type"}can anyone help, how do I update the data to add new values? or tell me how to create direct query to dynamo with this library?