From 8f56f54c5e8dd505e268ec741e1fc8c729107800 Mon Sep 17 00:00:00 2001 From: Alper Yilmaz Date: Tue, 6 Jun 2017 14:58:57 +0300 Subject: fixed node notation (#2745) nodes should be indicated with regular parenthesis `()`, some lines contained nodes within square brackets `[]` --- cypher.html.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cypher.html.markdown') 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) : -- cgit v1.2.3