summaryrefslogtreecommitdiffhomepage
path: root/cypher.html.markdown
diff options
context:
space:
mode:
authorAlper Yilmaz <alperyilmaz@gmail.com>2017-06-06 14:58:57 +0300
committerven <vendethiel@hotmail.fr>2017-06-06 13:58:57 +0200
commit8f56f54c5e8dd505e268ec741e1fc8c729107800 (patch)
treeb2d45f719fdda52a69fc582e63d1d9b076f12500 /cypher.html.markdown
parent3ede04c52fb98fda8108e98b5fd2219e7ba5d9d9 (diff)
fixed node notation (#2745)
nodes should be indicated with regular parenthesis `()`, some lines contained nodes within square brackets `[]`
Diffstat (limited to 'cypher.html.markdown')
-rw-r--r--cypher.html.markdown8
1 files changed, 4 insertions, 4 deletions
diff --git a/cypher.html.markdown b/cypher.html.markdown
index 2b8e9ac8..44db26ae 100644
--- a/cypher.html.markdown
+++ b/cypher.html.markdown
@@ -67,16 +67,16 @@ Paths
**The way to mix nodes and relationships.**
-```(a:Person)-[:KNOWS]-[b:Person]```
+```(a:Person)-[:KNOWS]-(b:Person)```
A path describing that **a** and **b** know each other.
-```(a:Person)-[:MANAGES]->[b:Person]```
+```(a:Person)-[:MANAGES]->(b:Person)```
A path can be directed. This path describes that **a** is the manager of **b**.
-```(a:Person)-[:KNOWS]-[b:Person]-[:KNOWS]-[c:Person]```
+```(a:Person)-[:KNOWS]-(b:Person)-[:KNOWS]-(c:Person)```
You can chain multiple relationships. This path describes the friend of a friend.
-```(a:Person)-[:MANAGES]->[b:Person]-[:MANAGES]->[c:Person]```
+```(a:Person)-[:MANAGES]->(b:Person)-[:MANAGES]->(c:Person)```
A chain can also be directed. This path describes that **a** is the boss of **b** and the big boss of **c**.
Patterns often used (from Neo4j doc) :