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

327
Visualizações
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 Respostas
Responde à pergunta

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 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