Skip to content

Commit 404c214

Browse files
Fix example in core concepts page (#1286)
1 parent 9e72800 commit 404c214

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ROOT/pages/queries/concepts.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ Exploring these paths sits at the very core of Cypher.
6464
[source, cypher]
6565
----
6666
MATCH (n:Person {name: 'Anna'})-[:KNOWS]-{1,5}(friend:Person WHERE n.born < friend.born)
67-
RETURN DISTINCT friend.name AS olderConnections
67+
RETURN DISTINCT friend.name AS youngerConnections
6868
----
6969

70-
This example uses a xref:patterns/variable-length-patterns.adoc#quantified-relationships[quantified relationship] to find all paths up to `5` hops away, traversing only relationships of type `KNOWS` from the start node `Anna` to other older `Person` nodes (as defined by the xref:clauses/where.adoc[] clause).
70+
This example uses a xref:patterns/variable-length-patterns.adoc#quantified-relationships[quantified relationship] to find all paths up to `5` hops away, traversing only relationships of type `KNOWS` from the start node `Anna` to other younger `Person` nodes (as defined by the xref:clauses/where.adoc[] clause).
7171
The `DISTINCT` operator is used to ensure that the `RETURN` clause only returns unique nodes.
7272

7373
Paths can also be assigned variables.

0 commit comments

Comments
 (0)