dynamodb icon indicating copy to clipboard operation
dynamodb copied to clipboard

$add does not work for appending to Joi.array() attributes

Open sanderr opened this issue 6 years ago • 1 comments

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.

sanderr avatar Mar 29 '18 08:03 sanderr

I think it's intended behavior because in the documentation stringSet() is used to show an example when working with lists?

abdurahmanadilovic avatar Dec 04 '18 14:12 abdurahmanadilovic