I have a dynamo table with a partition key of 'shop' and sort key 'item'. I want to use GetItemCommand to find a particular item using this composite key.
const params = {
TableName: process.env.DYNAMODB_TABLE_NAME,
Key: marshall({shop: String(event.pathParameters.shop),
item: String(event.pathParameters.item) }),
};
const {Item} = await db.send(new GetItemCommand(params));
console.log("item" + Item);
but it returns undefined