Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fix query index
  • Loading branch information
alfredkoncsag authored Aug 6, 2020
1 parent 3c85a7b commit 387a5e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ DynamoDb::table('articles')
->scan(); // supports any DynamoDbClient methods (e.g. batchWriteItem, batchGetItem, etc.)
DynamoDb::table('articles')
->setIndex('author_name')
->setIndexName('author_name')
->setKeyConditionExpression('#name = :name')
->setProjectionExpression('id, author_name')
// Can set the attribute mapping one by one instead
Expand Down

0 comments on commit 387a5e9

Please sign in to comment.