Debian Codegraph @

examples/prism-aql.html

raw symbols SCIP
1 <h2>Full example</h2>
2 <pre><code>FOR u IN users
3 FOR f IN friends
4 FILTER u.active == @active && f.active == true && u.id == f.userId
5 RETURN { "name" : u.name, "friends" : friends }
6
7 LET name = "Peter"
8 LET age = 42
9 RETURN { name, age }
10
11 FOR u IN users
12 FILTER u.status == "not active"
13 UPDATE u WITH { status: "inactive" } IN users
14
15 FOR i IN 1..100
16 INSERT { value: i } IN test
17 RETURN NEW</code></pre>