Skip to content

Commit d37a951

Browse files
4.4 cherry pick 780 (#788)
Co-authored-by: Arne Fischereit <[email protected]>
1 parent f8075be commit d37a951

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

modules/ROOT/pages/styleguide.adoc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -374,17 +374,15 @@ RETURN count(vehicle)
374374
.Bad
375375
[source, cypher, indent=0]
376376
----
377-
CREATE (a:End {prop: 42}),
378-
(b:End {prop: 3}),
379-
(c:Begin {prop: id(a)})
377+
MATCH (kate:Person {name: 'Kate'})-[r:LIKES]-(c:Car)
378+
RETURN c.type
380379
----
381380
+
382381
.Good
383382
[source, cypher, indent=0]
384383
----
385-
CREATE (a:End {prop: 42}),
386-
(:End {prop: 3}),
387-
(:Begin {prop: id(a)})
384+
MATCH (:Person {name: 'Kate'})-[:LIKES]-(c:Car)
385+
RETURN c.type
388386
----
389387

390388
* Chain patterns together to avoid repeating variables.

0 commit comments

Comments
 (0)