apoc.map.fromNodes
Syntax |
|
||
Description |
Returns a |
||
Arguments |
Name |
Type |
Description |
|
|
The node labels from which the map will be created. |
|
|
|
The property name to map the returned nodes by. |
|
Returns |
|
Usage Examples
The examples in this section are based on the following sample graph:
CREATE (TheMatrixRevolutions:Movie {title:'The Matrix Revolutions', released:2003, tagline:'Everything that has a beginning has an end'})
CREATE (YouveGotMail:Movie {title:"You've Got Mail", released:1998, tagline:'At odds in life... in love on-line.'})
CREATE (SleeplessInSeattle:Movie {title:'Sleepless in Seattle', released:1993, tagline:'What if someone you never met, someone you never saw, someone you never knew was the only someone for you?'});
RETURN apoc.map.fromNodes("Movie", "title");
Output |
---|
|