Skip to content

Commit

Permalink
service/dynamodb/expression: Fix Builder with KeyCondition example
Browse files Browse the repository at this point in the history
Fixes the ExampleBuilder_WithKeyCondition example to include the
ExpressionAttributeNames member being set.

Fix aws#285
  • Loading branch information
jasdel committed May 23, 2019
1 parent 946751c commit 9152eb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions service/dynamodb/expression/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ func ExampleBuilder_WithKeyCondition() {
// Use the built expression to populate the DynamoDB Query's API input
// parameters.
input := &dynamodb.QueryInput{
ExpressionAttributeNames: expr.Names(),
ExpressionAttributeValues: expr.Values(),
KeyConditionExpression: expr.KeyCondition(),
ProjectionExpression: expr.Projection(),
Expand Down

0 comments on commit 9152eb5

Please sign in to comment.