Amazon web services – Whats wrong with my code for AWS lambda always getting 500 response
In this code snippet I try to get an item from a table which has partitionKey as a messageId case "GET /items/{messageId}": const { messageId } = event.pathParameters; body = await dynamo.send( new GetCommand({ TableName: tableName, Key: { 'messageId': messageId,…