dynamodb
dynamodb copied to clipboard
$add does not work for appending to Joi.array() attributes
I'm not sure whether this is the intended behaviour: $add works fine for updating dynamo.types.stringSet() attributes, but for Joi.array() attributes one has to resort to { UpdateExpression: 'SET #array = list_append(#array, :newValues) } I understand that Dynamo treats these types differently, but at the abstraction level of dynamodb, I would expect stringSets and lists to behave the same.
I think it's intended behavior because in the documentation stringSet() is used to show an example when working with lists?