node.js - DynamoDB update inside an array of objects (nodejs) -


i noticed dynamodb can add , remove items array how search specific item inside object if want update 1 specifically? example: in mongodb can search someitem.$.subitem , update specific item. there way on how dynamodb?

item: {   someitem: [     {       subitem: "id",       somevalue: "something"     }   ] } 

i basic functionality seems not easy find (or unsupported)

aws not permit modify in single update request more info found in following answers: updating-a-json-array-in-aws-dynamodb.

the solution propose change schema array {}, or implement custom functions , iterate through each array , find new id update, speak programatically update json , insert whole object.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -