DynamoDB - with AWS SDK
You wrote this code snippet but get a runtime error:
What is the likely cause?
const { DynamoDBClient, GetItemCommand } = require('@aws-sdk/client-dynamodb');
const client = new DynamoDBClient();
const command = new GetItemCommand({ TableName: 'Users', Key: { id: '123' } });
const response = await client.send(command);
console.log(response.Item);What is the likely cause?
