


Magic UpdateExpressions: Writing complex UpdateExpression strings is a major pain, especially if the input data changes the underlying clauses or requires dynamic (or nested) attributes.Table Schemas and DynamoDB Typings: Define your Table and Entity data models using a simple JavaScript object structure, assign DynamoDB data types, and optionally set defaults.See Type Inference in the documentation for more details.
#Amazon tool box install#
Using your favorite package manager, install DynamoDB Toolbox and the aws-sdk v3 dependencies in your project by running one of the following commands: If you are using AWS SDK v2, please use versions that are lower than 0.8. Version 0.8 🙌įeedback is welcome and much appreciated! (Huge thanks to for all his work on this 🙌) Using AWS SDK and above is using AWS SDK v3. Learn more about single table design in Alex Debrie's blog. The DynamoDB Toolbox will map aliases, validate and coerce types, and even write complex UpdateExpressions for you. You can then generate the API parameters to put, get, delete, update, query, scan, batchGet, and batchWrite data by passing in JavaScript objects.

It lets you define your Entities (with typings and aliases) and map them to your DynamoDB tables. It's designed with Single Tables in mind, but works just as well with multiple tables. The DynamoDB Toolbox is a set of tools that makes it easy to work with Amazon DynamoDB and the DocumentClient. Single Table Designs have never been this easy!
