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

Login to the AWS Console less. Use Dynobase.

Try 7-day free trial. No credit card needed.

Product Features

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