apoc.map.groupByMulti
Syntax |
|
||
Description |
Creates a |
||
Arguments |
Name |
Type |
Description |
|
|
A list of map values to be grouped. |
|
|
|
The key to group the map values by. |
|
Returns |
|
Usage Examples
The following creates a map keyed by club
, with list values:
RETURN apoc.map.groupByMulti([
{name: "Cristiano Ronaldo", club: "Juventus"},
{name: "Lionel Messi", club: "Barcelona"},
{name: "Aaron Ramsey", club: "Juventus"},
{name: "Luiz Suarez", club: "Barcelona"}
], "club") AS output;
Output |
---|
|