Skip to content

Don't use assignment for MERGE/Update #105

Closed
@jexp

Description

@jexp

See the discussion here:

#99 (review)

Switch from SET x = {...} to SET x += {} or individual set operations.
We could also consider putting the data just into a parameter instead. So it would become SET x += $data

Usually you merge on a single field (in exceptional cases on a set of fields). (they keys that are used to look-up nodes for uniqueness)
And update fields are the fields that are added/overriden.

As MERGE is get-or-create you don't want to destroy existing additional data that might have been added in between by other means.

And if you leave off fields it doesn't mean you want to remove them, just that you don't have data (or updates) for them at the moment.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions