Skip to content

Commit b3cdecc

Browse files
authored
Merge pull request #545 from Huberst/patch-1
docs > clauses > match > Relationship example wrong
2 parents 39364c0 + e8396fe commit b3cdecc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/modules/ROOT/pages/clauses/match.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ Relationships can be used in a match clause by creating the relevant xref:/patte
4646

4747
[source, javascript]
4848
----
49-
const actedInPattern = new Cypher.Pattern(movieNode, { labels: ["Movie"] })
49+
const actedInPattern = new Cypher.Pattern(personNode, { labels: ["Person"] })
5050
.related({ type: "ACTED_IN" })
51-
.to(personNode, { labels: ["Person"] });
51+
.to(movieNode, { labels: ["Movie"] });
5252
5353
const matchQuery = new Cypher.Match(actedInPattern)
5454
----
5555

5656
[source, cypher]
5757
----
58-
MATCH (this1:`Person`)-[this0:ACTED_IN]->(this2:`Movie`)
58+
MATCH (this0:Person)-[:ACTED_IN]->(this1:Movie)
5959
----
6060

6161
== Filtering with `WHERE`

0 commit comments

Comments
 (0)