diff --git a/javascriptv3/example_code/dynamodb/actions/get-item.js b/javascriptv3/example_code/dynamodb/actions/get-item.js index 778989b78c0..7c80bc98efe 100644 --- a/javascriptv3/example_code/dynamodb/actions/get-item.js +++ b/javascriptv3/example_code/dynamodb/actions/get-item.js @@ -10,6 +10,7 @@ const client = new DynamoDBClient({}); export const main = async () => { const command = new GetItemCommand({ + ConsistentRead: true, TableName: "CafeTreats", // For more information about data types, // see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes and