dynobase-icon
Dynobase

DynamoDB: Query Count (Guide w/ Code Examples)

Rafal Wilinski

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); } });

Better DynamoDB experience.

First 7 days are on us. No strings attached.

Product Features

Download
/
Changelog
/
Pricing
/
Member Portal
/
Privacy
/
EULA
/
Twitter
© 2024 Dynobase
+
Using DynamoDB Console frequently?
Try Dynobase to accelerate your DynamoDB workflow. Start your 7-day free trial today.