apoc.refactor.collapseNode Procedure 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?