apoc.nodes.collapse
Procedure
apoc.nodes.collapse(nodes LIST<NODE>, config MAP<STRING, ANY>)
- merges NODE
values together in the given LIST<NODE>
.
The NODE
values are then combined to become one NODE
, with all labels of the previous NODE
values attached to it, and all RELATIONSHIP
values pointing to it.
Signature
apoc.nodes.collapse(nodes :: LIST<NODE>, config = {} :: MAP) :: (from :: NODE, rel :: RELATIONSHIP, to :: NODE)