I\'m trying to use the update_item functionality for DynamoDB in boto3.
update_item
I\'m struggling right now to update lists for items. I would like to create a n
You can use list_append(if_not_exists()) construction.
list_append(if_not_exists())
UpdateExpression:
'SET my_list2 = list_append(if_not_exists(my_list2, :empty_list), :my_value)'
ExpressionAttributeValues:
{ ":my_value":[{"S":"test"}], ":empty_list":{"L":[]} }