Skip to content

Commit

Permalink
Create c14.cypher
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxiw authored Jan 20, 2025
1 parent 5583cb5 commit d19e1b9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions demos/guru_scripts/docker/tutorial/4.x/cypher/c14.cypher
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
USE GRAPH financialGraph
CREATE OR REPLACE OPENCYPHER QUERY c14(){
MATCH (src)-[e:transfer]-> (tgt1)
WHERE src.name in ["Jenny", "Paul"]
UNWIND [1, 2, 3] AS x //the "Jenny" row will be expanded to [Jenny, 1], [Jenny,2], [Jenny, 3]. Same fashion applies to the "Paul" row.
WITH src AS srcAccount, e.amount * x AS res
RETURN srcAccount, res
}

install query c14

run query c14()

0 comments on commit d19e1b9

Please sign in to comment.