File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
docs/modules/ROOT/pages/clauses Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 "] })
50- .related({ type: "ACTED_IN" direction: "left" })
51- .to(personNode , { labels: ["Person "] });
49+ const actedInPattern = new Cypher.Pattern(personNode , { labels: ["Person "] })
50+ .related({ type: "ACTED_IN" })
51+ .to(movieNode , { labels: ["Movie "] });
5252
5353const matchQuery = new Cypher.Match(actedInPattern)
5454----
5555
5656[source, cypher]
5757----
58- MATCH (this0:Movie)< -[:ACTED_IN]-(this1:Person )
58+ MATCH (this0:Person) -[:ACTED_IN]-> (this1:Movie )
5959----
6060
6161== Filtering with `WHERE`
You can’t perform that action at this time.
0 commit comments