Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appendToList without initial array #299

Open
hookercookerman opened this issue May 6, 2020 · 0 comments
Open

appendToList without initial array #299

hookercookerman opened this issue May 6, 2020 · 0 comments

Comments

@hookercookerman
Copy link
Contributor

hookercookerman commented May 6, 2020

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant