Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@mhlabs/dynamodb-client

mhlabs8ISC3.3.1TypeScript support: included

A lib to simplify working with dynamodb document client in aws sdk v3.

aws, dynamodb, v3, documentclient

readme

dynamodb-client

A library simplifying working with dynamodb client in aws sdk v3.

Integration tests

The integration tests are not automated or part of the build (yet...). To run them locally, make sure to have docker installed and then:

docker run -v $(pwd)/data:/data -p 8000:8000 amazon/dynamodb-local -jar DynamoDBLocal.jar -sharedDb -dbPath /data

npm run integration-tests

To avoid having the data folder be created in different places, creating a folder like ~/dynamo and a script in it like below, and then starting the db by running the script will keep everything within that folder.

#!/bin/sh
docker run -v $(pwd)/data:/data -p 8000:8000 amazon/dynamodb-local -jar DynamoDBLocal.jar -sharedDb -dbPath /data