• 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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

 
Ranch Foreman
Posts: 2348
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VO1.name 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 ?
Thanks.
 
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic