I have a table in Dynamo db called Settings the unique keys is email and has an attribute called display_names this is type Map and has the following structure{'123-456': "any name", '789-123': 'another name'}
I'm trying to delete the name at with the attribute '123-456' with the following params
TableName: 'Settings',
Key: {
email: '[email protected]',
},
UpdateExpression: 'DELETE display_names :p',
ExpressionAttributeValues: '{":p" : {"S": 123-456}}'
};
But when I run the code I get the following error ExpressionAttributeValues contains invalid key: Syntax error; key: \"11\"",
I hope you can help me, thank you in advance!
Syntax error; token: \"\"\", near: \"[\"96\"",so I'm wondering what would be the correct form to access the value