dynamo-easy
dynamo-easy copied to clipboard
appendToList without initial array
when using appendToList there is no construction to allow the initial field to be null
FEATURE
Handle updates for appendToList that allow if not exists for setting a value
'SET my_list2 = list_append(if_not_exists(my_list2, :empty_list), :my_value)'
Ideal API
update2(AccommodationType, 'images').appendToList([image]).ifNotExists([image])
or
update2(AccommodationType, 'images').appendToList([image]).ifNotExists().set([images])
or
update2(AccommodationType, 'images').appendToList([image], true)