apoc.refactor.mergeRelationships

Details

Syntax

apoc.refactor.mergeRelationships(rels [, config ]) :: (rel)

Description

Merges the given LIST<RELATIONSHIP> onto the first RELATIONSHIP in the LIST<RELATIONSHIP>.

Input arguments

Name

Type

Description

rels

LIST<RELATIONSHIP>

The relationships to be merged onto the first relationship.

config

MAP

{ mergeRels :: BOOLEAN, selfRef :: BOOLEAN, produceSelfRef = true :: BOOLEAN, preserveExistingSelfRels = true :: BOOLEAN, countMerge = true :: BOOLEAN, collapsedLabel :: BOOLEAN, singleElementAsArray = false :: BOOLEAN, avoidDuplicates = false :: BOOLEAN, relationshipSelectionStrategy = "incoming" :: ["incoming", "outgoing", "merge"] properties :: ["overwrite", "discard", "combine"] }. The default is: {}.

Return arguments

Name

Type

Description

rel

RELATIONSHIP

The merged relationship.