Put Item Then Query
A 2-step recipe with Amazon DynamoDB. We can help you get access.
Recipe · 2 steps
Put Item Then Query
with Amazon DynamoDB
Put a single item and Query its partition.
- Write the item into the table.
- Query the table for all items matching the supplied key condition expression, returning the new item alongside any siblings.
What you'll need to have ready
- tableName: The name of the table to write to and Query.
- item: The item to write, as a map of attribute name to AttributeValue.
- keyConditionExpression: The Query key condition expression (e.g. "pk = :pk").
- expressionAttributeNames: Optional substitution tokens for attribute names.
- expressionAttributeValues: Values substituted into the key condition expression.
- limit: Maximum number of items to evaluate in the Query.
For your developer
Arazzo workflow amazon-dynamodb:put-then-Query, 2 operations: PutItem → Query. Specs on APIs.io.