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

323
Views
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 answers
Answer question

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