Skip to content

Commit

Permalink
Create c5.cypher
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxiw authored Jan 17, 2025
1 parent bd365e4 commit 2ff3086
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions demos/guru_scripts/docker/tutorial/4.x/cypher/c5.cypher
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
USE GRAPH financialGraph

// create a query
CREATE OR REPLACE OPENCYPHER QUERY c5(datetime low, datetime high, string accntName) {
// a path pattern in ascii art () -[]->()-[]->()
MATCH (a:Account {name: $accntName})-[e:transfer]->()-[e2:transfer]->(b:Account)
WHERE e.date >= $low AND e.date <= $high and e.amount >500 and e2.amount>500
RETURN b.isBlocked, b.name

}

install query c5

run query c5("2024-01-01", "2024-12-31", "Scott")

0 comments on commit 2ff3086

Please sign in to comment.