Skip to content

Commit 6fdd248

Browse files
authored
Update README.md
add vertex set as label example
1 parent 84be885 commit 6fdd248

File tree

1 file changed

+10
-0
lines changed
  • demos/guru_scripts/docker/tutorial/4.x

1 file changed

+10
-0
lines changed

demos/guru_scripts/docker/tutorial/4.x/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,16 @@ CREATE OR REPLACE QUERY q1a () SYNTAX v3 {
105105
106106
// output vertex set variable v in JSON format
107107
PRINT v;
108+
109+
//we can use vertex set variable in the subsequent query block's node pattern.
110+
//v is placed in the node pattern vertex label position. The result is re-assigned to v.
111+
v = SELECT a
112+
FROM (a:v)
113+
WHERE a.name == "Scott";
114+
115+
// output vertex set variable v in JSON format
116+
PRINT v;
117+
108118
}
109119
110120
#compile and install the query as a stored procedure

0 commit comments

Comments
 (0)