query-table
Retrieve items from a DynamoDB table using specified key conditions, filters, and optional parameters to refine query results.
Instructions
Query items from a DynamoDB table based on conditions
Input Schema
Name | Required | Description | Default |
---|---|---|---|
expressionAttributeValues | Yes | Filter expression attribute values (JSON format) | |
filterExpression | No | Filter expression (optional) | |
indexName | No | Name of the index to use (optional) | |
keyConditionExpression | Yes | Key condition expression (e.g: 'PK = :pk') | |
limit | No | Maximum number of items to return | |
projectionExpression | No | Projection expression (optional) | |
tableName | Yes | Name of the table to query |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"expressionAttributeValues": {
"additionalProperties": {},
"description": "Filter expression attribute values (JSON format)",
"type": "object"
},
"filterExpression": {
"description": "Filter expression (optional)",
"type": "string"
},
"indexName": {
"description": "Name of the index to use (optional)",
"type": "string"
},
"keyConditionExpression": {
"description": "Key condition expression (e.g: 'PK = :pk')",
"type": "string"
},
"limit": {
"description": "Maximum number of items to return",
"type": "number"
},
"projectionExpression": {
"description": "Projection expression (optional)",
"type": "string"
},
"tableName": {
"description": "Name of the table to query",
"type": "string"
}
},
"required": [
"tableName",
"keyConditionExpression",
"expressionAttributeValues"
],
"type": "object"
}