neo4j/community — Issue #149: Cypher pattern matching problems from the shell
Author: systay
Created: 2011-12-23 15:22:59+00:00
State: open
Labels: bug, cypher

The shell introduces a parameter named self. No pattern that includes the node that the shell is standing on will be found. Example:
neo4j-sh (0)$ start n = node(1) match n--r return n,r
+-------+
| n | r |
+-------+
+-------+
0 rows, 0 ms

neo4j-sh (0)$ start n = node(0) match n--r return n,r
+-----------------------+
| n | r |
+-----------------------+
| Node[0]{} | Node[1]{} |
+-----------------------+
1 rows, 0 ms

neo4j-sh (0)$