Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

222
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda