DynamoDB - with AWS SDK
What is wrong with this code?
const expr = set({ ':val': 10 }).toString();
const params = {
TableName: 'MyTable',
Key: { id: '123' },
UpdateExpression: expr,
ExpressionAttributeValues: { ':val': 10 }
};
Options:
A) ExpressionAttributeValues keys must match placeholders in UpdateExpression
B) No error, code is correct
C) UpdateExpression should not be a string
D) Key should be a string, not an object
