Skip to content

Commit 27dc857

Browse files
committed
Added documentation for raw sources.
1 parent 7146a12 commit 27dc857

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ In `serverless.yml` seeding categories are defined under `dynamodb.seed`.
107107

108108
If `dynamodb.start.seed` is true, then seeding is performed after table migrations.
109109

110+
If you wish to use raw AWS AttributeValues to specify your seed data instead of Javascript types then simply change the variable of any such json files from `sources:` to `rawsources:`.
111+
110112
```yml
111113
dynamodb:
112114
start:
@@ -122,7 +124,7 @@ dynamodb:
122124
test:
123125
sources:
124126
- table: users
125-
sources: [./fake-test-users.json]
127+
rawsources: [./fake-test-users.json]
126128
- table: subscriptions
127129
sources: [./fake-test-subscriptions.json]
128130
```

0 commit comments

Comments
 (0)