Skip to content

Commit 8fed76e

Browse files
editorial fixes
1 parent 6926d2c commit 8fed76e

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

modules/ROOT/pages/clauses/match.adoc

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ RETURN movie.title
8686
|===
8787

8888

89-
[[match-label-expressions]]
90-
=== MATCH using label expressions
89+
[[match-node-label-expressions]]
90+
=== MATCH using node label expressions
9191

9292
.Node pattern using the `OR` (`|`) label expression
9393
[source, cypher]
@@ -128,7 +128,7 @@ The above query uses the xref:functions/list.adoc#functions-labels[`labels()`] a
128128
2+|Rows: 1
129129
|===
130130

131-
For a full list of all label expressions supported by Cypher, see xref:patterns/reference.adoc#label-expressions[Patterns -> Label expressions].
131+
For a list of all label expressions supported by Cypher, see xref:patterns/reference.adoc#label-expressions[Patterns -> Label expressions].
132132

133133
[[find-relationships]]
134134
== Find relationships
@@ -250,10 +250,10 @@ RETURN actor.name AS actor
250250
|Rows: 3
251251
|===
252252

253-
[[match-on-multiple-relationship-types]]
254-
=== Filter on multiple relationship types
253+
[[match-relationship-type-expressions]]
254+
=== MATCH using relationship type expressions
255255

256-
It is possible to match for a pattern containing one out of several relationship types using the `OR` symbol, `|`.
256+
It is possible to match a pattern containing one of several relationship types using the `OR` symbol, `|`.
257257

258258
.Relationship pattern including either `ACTED_IN` or `DIRECTED` relationship types
259259
[source, cypher]
@@ -273,7 +273,9 @@ RETURN person.name AS person
273273
|Rows: 4
274274
|===
275275

276-
As relationships have exactly one type each, `()-[:A&B]->()` will never match a relationship.
276+
As relationships can only have exactly one type each, `()-[:A&B]->()` will never match a relationship.
277+
278+
For a list of all relationship type expressions supported by Cypher, see xref:patterns/reference.adoc#label-expressions[Patterns -> Label expressions].
277279

278280
[[multiple-relationships]]
279281
=== Find multiple relationships
@@ -300,7 +302,7 @@ RETURN movie.title AS movieTitle, director.name AS director
300302

301303
The `MATCH` clause is often paired with a `WHERE` sub-clause, which adds predicates to refine the patterns, making them more specific.
302304
These predicates are part of the pattern itself, not just filters applied after matching.
303-
Thus, the `WHERE` clause should always be placed with its corresponding `MATCH` clause.
305+
Thus, always place the `WHERE` clause with its corresponding `MATCH` clause.
304306

305307
.Simple `WHERE` predicate
306308
[source, cypher]
@@ -426,7 +428,7 @@ For more information about how `MATCH` is used to find patterns of varying compl
426428

427429
== Multiple MATCH clauses, the WITH clause, and clause composition
428430

429-
In Cypher, a query’s behavior is defined by its clauses.
431+
In Cypher, the behavior of a query is defined by its clauses.
430432
Each clause takes the current graph state and a table of intermediate results, processes them, and passes the updated graph state and results to the next clause.
431433
The first clause starts with the graph's initial state and an empty table, while the final clause produces the query's result.
432434

@@ -453,7 +455,7 @@ RETURN director.name AS director, movie.title AS movieTitle
453455

454456
A variable can be implicitly carried over to the following clause by being referenced in another operation.
455457
A variable can also be explicitly passed to the following clause using the xref:clauses/with.adoc[`WITH`] clause.
456-
If a variable is neither implicitly nor explicitly carried over to its following clause, it will be discarded and unavailable for reference later in the query.
458+
If a variable is neither implicitly nor explicitly carried over to its following clause, it will be discarded and is not available for reference later in the query.
457459

458460
.Using `WITH` and multiple `MATCH` clauses
459461
[source, cypher]
@@ -465,11 +467,10 @@ LIMIT 1 // <3>
465467
MATCH (actors)-[:ACTED_IN]->(movies) // <4>
466468
RETURN actors.name AS actor, movieCount, collect(movies.title) AS movies
467469
----
468-
<1> The `Person` and `Movie` nodes matched in this step are stored in variables.
469-
which are then passed on to the second row of the query.
470-
<2> The `movies` variable is here implicitly imported by its occurrence in the `count()` function.
470+
<1> The `Person` and `Movie` nodes matched in this step are stored in variables, which are then passed on to the second row of the query.
471+
<2> The `movies` variable is implicitly imported by its occurrence in the `count()` function.
471472
The `WITH` clause explicitly imports the `actors` variable.
472-
<3> An xref:clauses/order-by.adoc[`ORDER BY`] clause orders the results by `movieCount` in descending order, ensuring that the `Person` with the highest number of movies appears at the top, and xref:clauses/limit.adoc[`LIMIT] 1` ensures that all other `Person` nodes are discarded.
473+
<3> An xref:clauses/order-by.adoc[`ORDER BY`] clause orders the results by `movieCount` in descending order, ensuring that the `Person` with the highest number of movies appears at the top, and xref:clauses/limit.adoc[`LIMIT] 1` ensures that all other `Person` nodes are discarded.
473474
<4> The second `MATCH` clause finds all `Movie` nodes associated with the `Person` nodes currently bound to the `actors` variable.
474475

475476
[NOTE]

0 commit comments

Comments
 (0)