Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyachenko committed Aug 24, 2022
1 parent 58e0a7c commit d2d1c29
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions 3.2-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ import { ddb } from "./helpers/index.js";
async function getItem() {
const params = {
TableName: "Movies",
KeyConditionExpression: "tconst = :tconst AND begins_with(sk, :sk)",
ExpressionAttributeValues: {
":tconst": { S: "tt4633694" },
":sk": { S: "#DIRECTOR#" },
},
ProjectionExpression: "primaryName",
};

try {
Expand All @@ -20,3 +14,13 @@ async function getItem() {
}

getItem();

////////////////////////////////////////////////////////////////////////////////
// 1. Get directors by movie id
// KeyConditionExpression: "tconst = :tconst AND begins_with(sk, :sk)",
// ExpressionAttributeValues: {
// ":tconst": { S: "tt4633694" },
// ":sk": { S: "#DIRECTOR#" },
// },
// ProjectionExpression: "primaryName",
////////////////////////////////////////////////////////////////////////////////

0 comments on commit d2d1c29

Please sign in to comment.