apoc.nodes.collapse

Procedure

apoc.nodes.collapse(nodes [Node], config Map<String, Any>) - merges nodes together in the given list. The nodes are then combined to become one node, with all labels of the previous nodes attached to it, and all relationships pointing to it.

Signature

apoc.nodes.collapse(nodes :: LIST? OF NODE?, config = {} :: MAP?) :: (from :: NODE?, rel :: RELATIONSHIP?, to :: NODE?)

Input parameters

Name Type Default

nodes

LIST? OF NODE?

null

config

MAP?

{}

Output parameters

Name Type

from

NODE?

rel

RELATIONSHIP?

to

NODE?