Skip to content

Commit 72a7014

Browse files
authored
Merge pull request dynamodb-toolbox#150 from JakeMaldonado/master
Fix entity delete method example
2 parents 1ec11eb + e511305 commit 72a7014

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -896,8 +896,10 @@ let key = {
896896
// Use the 'delete' method of MyEntity to delete the item from DynamoDB
897897
let result = await MyEntity.delete(
898898
key,
899-
condition: { attr: 'date_modified' lt: '2020-01-01' },
900-
returnValues: 'all_old'
899+
{
900+
condition: { attr: 'date_modified' lt: '2020-01-01' },
901+
returnValues: 'all_old'
902+
}
901903
)
902904
```
903905

0 commit comments

Comments
 (0)