From 34882bbd88e3a0fa490586a3ad006f77381b459a Mon Sep 17 00:00:00 2001 From: Mingxi Wu Date: Sun, 19 Jan 2025 20:31:14 -0800 Subject: [PATCH] Create c21.cypher --- .../docker/tutorial/4.x/cypher/c21.cypher | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 demos/guru_scripts/docker/tutorial/4.x/cypher/c21.cypher diff --git a/demos/guru_scripts/docker/tutorial/4.x/cypher/c21.cypher b/demos/guru_scripts/docker/tutorial/4.x/cypher/c21.cypher new file mode 100644 index 00000000..4a532761 --- /dev/null +++ b/demos/guru_scripts/docker/tutorial/4.x/cypher/c21.cypher @@ -0,0 +1,11 @@ +use graph financialGraph + +CREATE OR REPLACE OPENCYPHER QUERY c21(String accntName){ + MATCH (srcAccount:Account {name: $accntName}) + OPTIONAL MATCH (srcAccount)- [e:transfer]-> (tgtAccount:Account) + WHERE srcAccount.isBlocked + RETURN srcAccount, tgtAccount +} + +install query c21 +run query c21("Jenny")