Skip to content

Commit 970756b

Browse files
authored
JavaScript (v3): DynamoDb - Make GetItem call strongly consistent. (#7015)
1 parent 1e4f5fb commit 970756b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

javascriptv3/example_code/dynamodb/actions/get-item.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const client = new DynamoDBClient({});
1010

1111
export const main = async () => {
1212
const command = new GetItemCommand({
13+
ConsistentRead: true,
1314
TableName: "CafeTreats",
1415
// For more information about data types,
1516
// see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes and

0 commit comments

Comments
 (0)