Skip to content

Commit

Permalink
added q1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingxi Wu authored and Mingxi Wu committed Sep 10, 2024
1 parent 76cb119 commit 1c67bc6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions demos/guru_scripts/docker/tutorial/4.x/script/q1.gsql
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#enter the graph
USE GRAPH financialGraph

# create a query
CREATE OR REPLACE QUERY q1 () SYNTAX v3 {

# select from a node pattern-- symbolized by ()
# v is a vertex set variable, holding the selected vertex set
v = SELECT a
FROM (a:Account);

# output vertex set variable v in json format
PRINT v;
}

#compile and install the query as a stored procedure
install query q1

#run the query
run query q1()

0 comments on commit 1c67bc6

Please sign in to comment.