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
Fixes #28: Remove items from linked lists and reconnect procedure #1816
Conversation
Relationship relationshipIn = filterRel.apply(node, Direction.INCOMING); | ||
Relationship relationshipOut = filterRel.apply(node, Direction.OUTGOING); | ||
|
||
// if terminal node |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// if terminal node | |
// if initial or terminal node |
@@ -0,0 +1,82 @@ | |||
The examples in this section are based on the following sample graph: | |||
|
|||
Let's suppose we have a simple dataset like: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's suppose we have a simple dataset like: | |
Let's suppose we have a simple data set like: |
@@ -0,0 +1,18 @@ | |||
The procedure support the following config parameters: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The procedure support the following config parameters: | |
The procedure supports the following config parameters: |
docs/asciidoc/modules/ROOT/partials/usage/config/apoc.refactor.deleteAndReconnect.adoc
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/outcoming/outgoing/ but the rest looks good!
Fixes #28
One sentence summary of the change.
Proposed Changes (Mandatory)
A brief list of proposed changes in order to fix the issue:
apoc.refactor.deleteAndReconnect(Path, ListOfNodesToRemove, {config})
relationshipSelectionStrategy
: ifincoming
, the incoming relationship will be attached to the next node, ifoutcoming
the outcoming relationship will be attached, ifmerge
will be attacched a merge of incoming and outcoming relationships. With the same property name, takes precedence the incoming node.properties
: Will be considered only ifrelationshipSelectionStrategy
is merge. Ifdiscard
, start node wins, vice versa ifoverwrite
oroverride
, orcombine
that create an array of incoming+outcoming properties (if both exist)