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 BatchWriteItem in Typescript
- DynamoDB: Query Greater Than
- DynamoDB: Get All Items
- DynamoDB Get in Typescript
- DynamoDB: Attribute Not Null
- DynamoDB: Get Random Item
- DynamoDB: Get Query
- DynamoDB: Get Multiple Items
- DynamoDB: Query Global Secondary Index in Nodejs
- DynamoDB: Delete Multiple Items in Javascript
- DynamoDB: Get Last Inserted Item
- DynamoDB: Not Begins With
- DynamoDB: Get By ID
Better DynamoDB experience.
First 7 days are on us. No strings attached.
Product Features
DynamoDB Tools
DynamoDB Info
© 2024 Dynobase