Skip to content

Commit

Permalink
docs(README): add correct deps to quick start (dynamodb-toolbox#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
NimmLor authored Apr 13, 2023
1 parent cd352ab commit d4bc57c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ Using your favorite package manager, install DynamoDB Toolbox and the aws-sdk v3
```bash
# npm
npm i dynamodb-toolbox
npm install @aws-sdk/lib-dynamodb @aws-sdk/util-dynamodb
npm install @aws-sdk/lib-dynamodb @aws-sdk/client-dynamodb

# yarn
yarn add dynamodb-toolbox
yarn add @aws-sdk/lib-dynamodb @aws-sdk/util-dynamodb
yarn add @aws-sdk/lib-dynamodb @aws-sdk/client-dynamodb
```

Require or import `Table` and `Entity` from `dynamodb-toolbox`:
Expand Down Expand Up @@ -72,7 +72,7 @@ const unmarshallOptions = {
const translateConfig = { marshallOptions, unmarshallOptions }

// Instantiate a DocumentClient
export const DocumentClient = DynamoDBDocumentClient.from(new DynamoDBClient(), translateConfig)
export const DocumentClient = DynamoDBDocumentClient.from(new DynamoDBClient({}), translateConfig)


// Instantiate a table
Expand Down

0 comments on commit d4bc57c

Please sign in to comment.