Skip to content

Commit af07517

Browse files
fix tutorial composite using deprecated or invalid syntax (#3125) (#3139)
On the following page https://neo4j.com/docs/operations-manual/2026.05/tutorial/tutorial-composite-database/ , some cypher queries use deprecated syntax or invalid syntax. <img width="1591" height="579" alt="Screenshot 2026-06-10 at 21 32 05" src="https://github.com/user-attachments/assets/cc3176ca-d7cf-4a24-bfda-1c4b2bfe983e" /> <img width="2141" height="580" alt="Screenshot 2026-06-10 at 21 32 24" src="https://github.com/user-attachments/assets/17983956-9eea-4f43-bacc-608a3ccd008b" /> This PR fixes them. Co-authored-by: Christophe Willemsen <willemsen.christophe@gmail.com>
1 parent bcca848 commit af07517

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

modules/ROOT/pages/tutorial/tutorial-composite-database.adoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ Or, using a more common Composite database idiom:
594594
[source, cypher, role=noplay]
595595
----
596596
UNWIND ['compositenw.customerAME', 'compositenw.customerEU'] AS g
597-
CALL {
597+
CALL(g) {
598598
USE graph.byName(g)
599599
MATCH (c:Customer)
600600
WHERE c.customerID STARTS WITH 'A'
@@ -630,7 +630,7 @@ Here is a more complex query that uses all 3 databases to find all customers who
630630

631631
[source, cypher, role=noplay]
632632
----
633-
CALL {
633+
CALL() {
634634
USE compositenw.product
635635
MATCH (p:Product)-[:PART_OF]->(c:Category)
636636
WHERE p.discontinued = true
@@ -639,9 +639,8 @@ CALL {
639639
}
640640
WITH *
641641
UNWIND [g IN graph.names() WHERE g STARTS WITH 'compositenw.customer'] AS g
642-
CALL {
642+
CALL(g, pids) {
643643
USE graph.byName(g)
644-
WITH pids
645644
UNWIND pids as pid
646645
MATCH (p:Product{productID:pid})<-[:ORDERS]-(:Order)<-[:PURCHASED]-(c:Customer)
647646
RETURN DISTINCT c.customerID AS customer, c.country AS country

0 commit comments

Comments
 (0)