Skip to content

Commit

Permalink
Merge pull request #27 from lpsinger/update-example
Browse files Browse the repository at this point in the history
Update example code
  • Loading branch information
dakota002 authored Oct 31, 2023
2 parents fd19a7f + e990e9d commit 7d879b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ abstract class BaseDynamoDBAutoIncrement {
* ```
* import { DynamoDB } from '@aws-sdk/client-dynamodb'
* import { DynamoDBDocument } from '@aws-sdk/lib-dynamodb'
* import { DynamoDBAutoIncrement } from '@nasa-gcn/dynamodb-autoincrement'
*
* const client = new DynamoDB({})
* const doc = DynamoDBDocument.from(client)
*
* const autoIncrement = dynamoDBAutoIncrement({
* const autoIncrement = DynamoDBAutoIncrement({
* doc,
* counterTableName: 'autoincrementHelper',
* counterTableKey: { autoincrementHelperForTable: 'widgets' },
Expand All @@ -81,7 +82,7 @@ abstract class BaseDynamoDBAutoIncrement {
* initialValue: 0,
* })
*
* const lastWidgetID = await autoIncrement({
* const lastWidgetID = await autoIncrement.put({
* widgetName: 'runcible spoon',
* costDollars: 99.99,
* })
Expand Down

0 comments on commit 7d879b7

Please sign in to comment.