Skip to content

Commit

Permalink
Add missing expression attribute names to example (#3973)
Browse files Browse the repository at this point in the history
Missing expression attribute names in example causes error `An expression attribute value used in expression is not defined`
  • Loading branch information
worldtiki authored Jul 14, 2021
1 parent ddf01e4 commit 2aae042
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 @@ -37,6 +37,7 @@ func ExampleBuilder_WithProjection() {
// 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 2aae042

Please sign in to comment.