Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

211
Views
How to query with partition key in Amazon DynamoDB using the AWS SDK for JavaScript

I'm new to Amazon DynamoDB and I want to get records according to creator id. I made one partition key and after made query

 var params = {

    TableName: process.env.TABLE_PARTS,
     IndexName: "createdBy-index",
      KeyConditionExpression: "createdBy = :createdBy",
      ExpressionAttributeValues: {":createdBy": "abus282jehbhwdubunids"}
      
   }
  
  const data = await db.query(params).promise();

  res.send(data);

But I am getting data = null

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

To learn how to successfully use the AWS SDK for JavaScript to query Amazon DynamoDB tables, see the AWS SDK for JavaScript DEV Guide. Specifically refer to this topic:

Amazon DynamoDB examples

See the example under Getting an item.

This DEV guide has the information you need to successfully use this SDK.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!