apoc.map.groupBy

Function

apoc.map.groupBy([maps/nodes/relationships],'key') yield value - creates a map of the list keyed by the given property, with single values

Signature

apoc.map.groupBy(values :: LIST? OF ANY?, key :: STRING?) :: (MAP?)

Input parameters

Name Type Default

values

LIST? OF ANY?

null

key

STRING?

null