dynamodb get all items nodejs
const AWS = require('aws-sdk');
const dynamodb = new AWS.DynamoDB.DocumentClient();
const params = { TableName: 'YourTableName' };
dynamodb.scan(params, (err, data) => { if (err) { console.error("Unable to scan the table. Error JSON:", JSON.stringify(err, null, 2)); } else { console.log("Scan succeeded."); data.Items.forEach((item) => { console.log(" -", item); }); } });