Skip to content

Commit

Permalink
Create c21.cypher
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxiw authored Jan 20, 2025
1 parent 26fb9ce commit 34882bb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions demos/guru_scripts/docker/tutorial/4.x/cypher/c21.cypher
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 34882bb

Please sign in to comment.