Skip to content

Commit 3e0207b

Browse files
fix table formatting
1 parent 8fed76e commit 3e0207b

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

modules/ROOT/pages/clauses/match.adoc

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ RETURN n
6262
| (:Person {"name":"Rob Reiner"})
6363
| (:Movie {"title":"Wall Street"})
6464
| (:Movie {"title":"The American President"})
65-
|Rows: 7
65+
1+d| Rows: 7
6666
|===
6767

6868

@@ -82,7 +82,7 @@ RETURN movie.title
8282
| movie.title
8383
| "Wall Street"
8484
| "The American President"
85-
|Rows: 2
85+
1+d| Rows: 2
8686
|===
8787

8888

@@ -107,7 +107,7 @@ RETURN n.name AS name, n.title AS title
107107
| "Rob Reiner" | <null>
108108
| <null> | "Wall Street"
109109
| <null> | "The American President"
110-
2+|Rows: 7
110+
2+d| Rows: 7
111111
|===
112112

113113
.Node pattern using negation (`!`) label expression
@@ -125,7 +125,7 @@ The above query uses the xref:functions/list.adoc#functions-labels[`labels()`] a
125125
|===
126126
| label | labelCount
127127
| ["Person"] | 5
128-
2+|Rows: 1
128+
2+d| Rows: 1
129129
|===
130130

131131
For a list of all label expressions supported by Cypher, see xref:patterns/reference.adoc#label-expressions[Patterns -> Label expressions].
@@ -147,6 +147,7 @@ Read more about this behavior in the section on xref::patterns/reference.adoc#gr
147147
By applying `--`, a pattern will be matched for a relationship with any direction and without any filtering on relationship types or properties.
148148

149149
.Find connected nodes using an empty relationship pattern
150+
[source, cypher]
150151
----
151152
MATCH (:Person {name: 'Oliver Stone'})--(n)
152153
RETURN n AS connectedNodes
@@ -157,6 +158,8 @@ RETURN n AS connectedNodes
157158
|===
158159
| connectedNodes
159160
| (:Movie {title: "Wall Street"})
161+
162+
1+d| Rows: 1
160163
|===
161164

162165
[[directed-relationship-patterns]]
@@ -176,7 +179,7 @@ RETURN movie.title AS movieTitle
176179
|===
177180
| movieTitle
178181
| "Wall Street"
179-
|Rows: 1
182+
1+d| Rows: 1
180183
|===
181184

182185
[[relationship-variables]]
@@ -199,7 +202,7 @@ The above query uses the xref:functions/scalar.adoc#functions-type[`type()` func
199202
|===
200203
| relType
201204
| "DIRECTED"
202-
|Rows: 1
205+
1+d| Rows: 1
203206
|===
204207

205208
[[undirected-relationships]]
@@ -225,7 +228,7 @@ RETURN a, b
225228
| (:Person {"name":"Charlie Sheen"})
226229
| (:Movie {"title":"Wall Street"})
227230

228-
2+|Rows: 2
231+
2+d| Rows: 2
229232
|===
230233

231234
[[match-on-relationship-type]]
@@ -247,7 +250,7 @@ RETURN actor.name AS actor
247250
| "Michael Douglas"
248251
| "Martin Sheen"
249252
| "Charlie Sheen"
250-
|Rows: 3
253+
1+d| Rows: 3
251254
|===
252255

253256
[[match-relationship-type-expressions]]
@@ -270,7 +273,7 @@ RETURN person.name AS person
270273
| "Michael Douglas"
271274
| "Martin Sheen"
272275
| "Charlie Sheen"
273-
|Rows: 4
276+
1+d| Rows: 4
274277
|===
275278

276279
As relationships can only have exactly one type each, `()-[:A&B]->()` will never match a relationship.
@@ -294,7 +297,7 @@ RETURN movie.title AS movieTitle, director.name AS director
294297
|===
295298
| movieTitle | director
296299
| "Wall Street" | "Oliver Stone"
297-
2+|Rows: 1
300+
2+d| Rows: 1
298301
|===
299302

300303
[[where-predicates]]
@@ -317,7 +320,7 @@ RETURN movie.title AS movieTitle
317320
|===
318321
| movieTitle
319322
| "Wall Street"
320-
|Rows: 1
323+
1+d| Rows: 1
321324
|===
322325

323326
.More complex `WHERE` predicate
@@ -338,7 +341,7 @@ The above query uses an xref:subqueries/existential.adoc[`EXISTS` subquery].
338341
|===
339342
| movieTitle
340343
| "The American President"
341-
|Rows: 1
344+
1+d| Rows: 1
342345
|===
343346

344347
For more information, see the xref:clauses/where.adoc[`WHERE`] page.
@@ -376,7 +379,7 @@ The above query uses the xref:syntax/operators.adoc#query-operator-comparison-st
376379
| "Charlie Sheen" | "Bud Fox"
377380
| "Martin Sheen" | "Carl Fox"
378381

379-
2+|Rows: 2
382+
2+d|Rows: 2
380383
|===
381384

382385
For more information about how to set parameters, see xref:syntax/parameters.adoc[Syntax -> Parameters].
@@ -402,7 +405,7 @@ RETURN path
402405
| (:Person {name: "Martin Sheen"})-[:ACTED_IN {role: "A.J. MacInerney"}]->(:Movie {title: "The American President"})
403406
| (:Person {name: "Michael Douglas"})-[:ACTED_IN {role: "Gordon Gekko"}]->(:Movie {title: "Wall Street"})
404407
| (:Person {name: "Michael Douglas"})-[:ACTED_IN {role: "President Andrew Shepherd"}]->(:Movie {title: "The American President"})
405-
| Rows: 5
408+
1+d| Rows: 5
406409
|===
407410

408411

@@ -421,7 +424,7 @@ RETURN path
421424
| (:Person {name: "Charlie Sheen"})-[:ACTED_IN {role: "Bud Fox"}]->(:Movie {title: "Wall Street"})<-[:DIRECTED]-(:Person {name: "Oliver Stone"})
422425
| (:Person {name: "Martin Sheen"})-[:ACTED_IN {role: "Carl Fox"}]->(:Movie {title: "Wall Street"})<-[:DIRECTED]-(:Person {name: "Oliver Stone"})
423426
| (:Person {name: "Michael Douglas"})-[:ACTED_IN {role: "Gordon Gekko"}]->(:Movie {title: "Wall Street"})<-[:DIRECTED]-(:Person {name: "Oliver Stone"})
424-
|Rows: 3
427+
1+d| Rows: 3
425428
|===
426429

427430
For more information about how `MATCH` is used to find patterns of varying complexity (including xref:patterns/variable-length-patterns.adoc#quantified-path-patterns[quantified path patterns], xref:patterns/variable-length-patterns.adoc#quantified-relationships[quantified relationships], and the xref:patterns/shortest-paths.adoc[shortest paths] between nodes), see the section on xref::patterns/index.adoc[Patterns].

0 commit comments

Comments
 (0)