apoc.refactor.collapseNode

Procedure APOC Core

apoc.refactor.collapseNode([node1,node2],'TYPE') collapse node to relationship, node with one rel becomes self-relationship

Signature

apoc.refactor.collapseNode(nodes :: ANY?, type :: STRING?) :: (input :: INTEGER?, output :: RELATIONSHIP?, error :: STRING?)

Input parameters

Name Type Default

nodes

ANY?

null

type

STRING?

null

Output parameters

Name Type

input

INTEGER?

output

RELATIONSHIP?

error

STRING?