dynamo-easy icon indicating copy to clipboard operation
dynamo-easy copied to clipboard

appendToList without initial array

Open hookercookerman opened this issue 5 years ago • 0 comments

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)

hookercookerman avatar May 06 '20 16:05 hookercookerman