Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
  • salvin francis
  • Frits Walraven
  • Piet Souris

How to query in DynamoDb using a parameter which is a field inside JSON?

Ranch Foreman
Posts: 2343
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a DynamoDb table ProductCatalog. Next, I created a item with id (primary key) as 1, title as 'Book 210 Title' and vendorInfo as the below JSON:

This constitutes one item.

I did a scan on the table which displayed the item. Next, I did a query by specifying id as 1, it returned the item as result.

I am now trying to query using a parameter which is inside the JSON (for example : name under VO1 which has the value 'Acme Books').
I tried by specifying but it did not return results.

I have seen such kind of querying in CosmosDb which is also a document oriented NoSql database like DynamoDb.

How do I try such kind of query ?
There are 29 Knuts in one Sickle, and 17 Sickles make up a Galleon. 42 tiny ads in a knut:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic