DynamoDB: Query Count (Guide w/ Code Examples)

Provided by Rafal Wilinski
To query the count of items in a DynamoDB table using the JavaScript SDK, you can use the query
operation and set the Select
parameter to COUNT
.
var params = { TableName: "myTable", Select: "COUNT" }; dynamodb.query(params, function(err, data) { if (err) { console.log("Error", err); } else { console.log("Success", data.Count); } });
Similar Code Examples
- DynamoDB: Not Begins With
- DynamoDB: Get Multiple Items
- DynamoDB: Bulk Insert
- DynamoDB: Delete
- DynamoDB: Get Last 10 Records
- DynamoDB: Batch Get
- DynamoDB: Query JSON
- DynamoDB: BatchGetItem
- DynamoDB: Query KeyConditionExpression
- DynamoDB: Get By ID
- DynamoDB: Like
- DynamoDB: Not Between
- DynamoDB: Get Table
- DynamoDB: GetItem
- DynamoDB: Query Greater Than
Login to the AWS Console less. Use Dynobase.
First 7 days are on us. No strings attached.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase