Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxiw authored Sep 12, 2024
1 parent 0826186 commit 1f46f49
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions demos/guru_scripts/docker/tutorial/4.x/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,28 @@ install query q1
#run the query
run query q1()
```

You can group by on the matched node table, just as you group by a table and aggregate in SQL.

```sql
#enter the graph
USE GRAPH financialGraph

CREATE OR REPLACE QUERY q1a () SYNTAX v3 {

SELECT a.isBlocked, count(*) INTO T
FROM (a:Account)
GROUP BY a.isBlocked;

PRINT T;
}

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

#run the query
run query q1a()
```
## Edge Pattern
Copy [q2.gsql](./script/q2.gsql) to your container.

Expand Down

0 comments on commit 1f46f49

Please sign in to comment.