I am attempting to query a string set item from DynamoDB
Error :
{
"errorMessage":"{
"message": "Unexpected key 'Key' found in params",
"code": "UnexpectedParameter",
"time": "2016-01-06T08:24:02.183Z"
}"
}
Code :
var table = 'users'
var params = {
TableName : table,
Key : {
'userType': { 'S': event.type },
'username': { 'S': event.username }
}
}
ddb.query (params, function(err, data) {
if (err) {
// Oh well
} else {
context.succeed (data.Item)
}
})
I want my system to allow multiple users to have the same username - sounds silly, its for a good reason.
Thank you in advance