Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

220
Visualizações
How to query with nested object in Amazon DynamoDB

I'm new to Amazon DynamoDB and I want to get records according to creator id which is in parts object. so how could i fetch data from db according to creator id.

{​​​​​ "id": "123", "parts": {​​​​​ "name": "xyz", "createdBy": "1", }​​​​​ }​​​​​

so how could i query and get data where parts.createdBy id is 1. and i am using AWS.document.client.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

it works a little bit different in DynamoDB, you need to create an index to be able to Query data in DynamoDB, you can't query data using the nested value parts.createdBy,

when you write your data to DynamoDB, you will need to extract the ID from within the object and place it in an attribute/column and create an Index in the table using that value

have a look on this article, Alex is an expert on DynamoDB and I'm confident that after you read it, you will be able to achieve what you are looking for:

https://www.alexdebrie.com/posts/dynamodb-one-to-many/

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda