I have the following table stored in DynamoDB:
{
"name" :"A",
"videos": [
{
"playlistId" : "ABCD"
"title" : "Hello, world!"
}
]
}
I want to make it into the following:
{
"name" :"A",
"videos": [
{
"playlistId" : "ABCD"
"title" : "Hello, world!"
},
{
"playlistId" : "EFGH"
"title" : "Bye, world!"
},
{
"playlistId" : "IJKL"
"title" : "Good morning, world!"
}
]
}
I tried to do it using DynamoDB Create operation, but it threw Duplicate Key error because all three video objects have the same primary key ("name").
Now, I am trying to do so by updating the "videos", by appending to the list. When I do so, it throws Unsupported type error. Can someone nudge me in the right direction in this?

