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: Delete
- DynamoDB: GetItem
- DynamoDB: Increment Counter
- DynamoDB: BatchGetItem
- DynamoDB: Delete Multiple Items in Javascript
- DynamoDB: Get Last 10 Records
- DynamoDB: Query JSON
- DynamoDB: Query KeyConditionExpression
- DynamoDB: Query Greater Than
- DynamoDB: Batch Get
- DynamoDB: Delete All Items With Partition Key
- DynamoDB: Delete Table
- DynamoDB: Query Group By
- DynamoDB: Get Unique Values
- DynamoDB: Query Ends With
Login to the AWS Console less. Use Dynobase.
Try 7-day free trial. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2024 Dynobase