Skip to content

Commit

Permalink
Replaced deprecated pattern
Browse files Browse the repository at this point in the history
Cross references in CREATE statements are deprecated, as their semantics are often unclear.
  • Loading branch information
arnefischereit authored Nov 13, 2023
1 parent f89f6e8 commit 21fe700
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/style-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -322,17 +322,17 @@ RETURN count(vehicle)
.Bad
[source, cypher]
----
CREATE (a:End {prop: 42}),
(b:End {prop: 3}),
(c:Begin {prop: id(a)})
MATCH (a:End {prop: 42}),
(b:End {prop: 3}),
(c:Begin {prop: id(a)})
----
+
.Good
[source, cypher]
----
CREATE (a:End {prop: 42}),
(:End {prop: 3}),
(:Begin {prop: id(a)})
MATCH (a:End {prop: 42}),
(:End {prop: 3}),
(:Begin {prop: id(a)})
----
. Chain patterns together to avoid repeating variables.
Expand Down

0 comments on commit 21fe700

Please sign in to comment.