Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // returns a single node of any type (limited to 1 for performance)
- MATCH (a) RETURN a LIMIT 1
- // returns a single node of type Author
- MATCH (a:Author) RETURN a LIMIT 1
- // returns the path between 10 Author/Paper nodes
- MATCH path=((a:Author)->(p:Paper)) RETURN path LIMIT 10
- // returns a nodes of type Author and Paper with edge type specified
- MATCH (a:Author)-[:AUTHORS]->(p:Paper) RETURN * LIMIT 10
- // returns 10 Author nodes that were the first author on a Paper
- // Note that querying on edge properties is very expensive
- MATCH (a:Author)-[auth:AUTHORS {position: 1}]->(p:Paper) RETURN a LIMIT 10
- // returns Author nodes with the last name 'Berendse'
- MATCH (a:Author {last: 'Berendse'}) RETURN *
Add Comment
Please, Sign In to add comment