Skip to content

Conversation

@meistermeier
Copy link
Contributor

Boils down the create or update logic even more.

Closes #1932

UNWIND $rows AS row
MERGE (u:%s {%2$s: row.id})
ON CREATE
SET u += row.properties

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am nitpicking, but please consider modifying line 211 so that the SET statement is right under MERGE

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpicking back 😄 The set operation is a follow-up operation on the merge and therefore I would prefer to keep it indented for readability.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding a Document to a neo4j vector store needlessly overwrites all its properties

3 participants