You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const documentClient = new AWS.DynamoDB.DocumentClient({ region: "us-west-2" });
const query = async () => {
const response = await documentClient
.query({
TableName: "Music",
KeyConditionExpression: "#pk = :pk",
ExpressionAttributeNames: {
"#pk": "Artist",
},
ExpressionAttributeValues: {
":pk": "Michael Jackson",
},
ConsistentRead: true,
})
.promise();
if (response.LastEvaluatedKey) {
console.log(
`Not all items have been retrieved by this query. At least one another request is required to get all available items. The last evaluated key corresponds to ${JSON.stringify(