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

324
Vistas
Using DynamoDB Filter on AWS Console for nested attribute

I have a map within DDB, with various nested attributes. The map itself is called 'state', and has a nested property within called 'prop'.

I want to filter for all results that "contains" (within the dropdown) X within prop.

Unfortunately, I've tried various ways such as:

state.prop "CONTAINS" X
state.#prop "CONTAINS" X

I just can't seem to filter by anything other than the primary key. Any sort of nested filter, or a filter on any other column returns 0 results (when some definitely exist).

The majority of the examples are code or CLI based, not the DDB UI.

Please can someone provide me with an example of filtering through a map, on DDB, within AWS Console.

Many thanks.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I think the tidiest way to do this is to separate the value inside the map into a field on the root document (next to the partition and sort key) and then creating a Global Secondary Index (GSI) or a Local Secondary Index (LSI) depending on how you want to use it. You can then use the Query operation to search the index for the document and access the rest of the map properties in your code from there (In this instance you could name the field stateProof).

There is this thread which details the ability to use FilterExpression in Scan operations, however I think this is quite expensive if there's a-lot of documents in the DDB but it may well be much easier than adding new indexes and updating the existing DDB document format.

over 4 years ago · Santiago Trujillo 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