Skip to content

Commit

Permalink
service/dynamodb/expression: Fix Builder with KeyCondition example (a…
Browse files Browse the repository at this point in the history
…ws#2618)

Fixes the ExampleBuilder_WithKeyCondition example to include the
ExpressionAttributeNames member being set.

Related to aws/aws-sdk-go-v2#285
  • Loading branch information
jasdel authored and diehlaws committed Jul 2, 2019
1 parent 494f9de commit 7e49425
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 @@ -94,6 +94,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 7e49425

Please sign in to comment.