Skip to content

Commit 6382642

Browse files
Update README.md
Updated to reflect how to use convertEmptyValues option
1 parent 8e9ad83 commit 6382642

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ All CLI options are optional:
5353
--optimizeDbBeforeStartup -o Optimizes the underlying database tables before starting up DynamoDB on your computer. You must also specify -dbPath when you use this parameter.
5454
--migrate -m After starting DynamoDB local, create DynamoDB tables from the Serverless configuration.
5555
--seed -s After starting and migrating dynamodb local, injects seed data into your tables. The --seed option determines which data categories to onload.
56+
--convertEmptyValues -e Set to true if you would like the document client to convert empty values (0-length strings, binary buffers, and sets) to be converted to NULL types when persisting to DynamoDB.
5657
```
5758

5859
All the above options can be added to serverless.yml to set default configuration: e.g.
@@ -65,6 +66,7 @@ custom:
6566
inMemory: true
6667
migrate: true
6768
seed: true
69+
convertEmptyValues: true
6870
# Uncomment only if you already have a DynamoDB running locally
6971
# noStart: true
7072
```

0 commit comments

Comments
 (0)