There the answer to this question is accepted, which helped me with part of this problem. However, we usually want to update lists with additional objects , rather than rows. For this, I found it helpful to avoid using ExpressionAttributeNames if possible.
1) Make sure the value in your element in the DynamoDB table is a list. 2) Make sure you go to the list of objects (even if you only have one), and not a simple object
UpdateExpression: "set pObj.cObj= list_append(pObj.cObj, :obj)", ExpressionAttributeValues: { ":obj": [ {myObject: { property1: '', property2: '', property3: '', }} ] },
Matthew pitts
source share