DynamoDB: Get List Of Items (Guide w/ Code Examples)

Provided by Rafal Wilinski
To get a list of items from a DynamoDB table using the JavaScript SDK, you can use the scan
method. This will return all the items in the table as an array of JavaScript objects, which you can then use to display or manipulate the data as needed.
const AWS = require('aws-sdk'); const dynamoDb = new AWS.DynamoDB.DocumentClient(); const params = { TableName: 'your-table-name' }; dynamoDb.scan(params, (error, data) => { if (error) { console.log(error); } else { console.log(data.Items); } });
Similar Code Examples
- DynamoDB: Query Group By
- DynamoDB: Query Count
- DynamoDB: Increment Counter
- DynamoDB: Create if Not Exists
- DynamoDB: Get Multiple Items
- DynamoDB: Not Begins With
- DynamoDB: Get Table
- DynamoDB: Query Ends With
- DynamoDB: Get Last Inserted Item
- DynamoDB: Get All Items
- DynamoDB: Attribute Not Null
- DynamoDB: Query JSON
- DynamoDB: Delete All Items With Partition Key
- DynamoDB: Like
- DynamoDB: Get Last 10 Records
Tired of AWS Console? Try Dynobase.
First 7 days are. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase