DynamoDB: Query Count (Guide w/ Code Examples)
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: Query JSON
- DynamoDB: Delete
- DynamoDB: Get All Items
- DynamoDB: GetItem
- DynamoDB: Get Unique Values
- DynamoDB: Get Last Inserted Item
- DynamoDB: Get Random Item
- DynamoDB: Delete Table
- DynamoDB: Attribute Not Null
- DynamoDB: Query Greater Than
- DynamoDB: Increment Counter
- DynamoDB: Query Date Range
- DynamoDB: Get List Of Items
- DynamoDB BatchWriteItem in Typescript
- DynamoDB: Get By ID
Tired of AWS Console? Try Dynobase.
First 7 days are. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2023 Dynobase