-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |