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
Post a Comment