Expression is the combination of call and operations against constant and alias.
Purpose |
Example |
---|---|
Decimal constant | -10.25,1,1691636269 |
Textual constant | "graph",'uql',' both ' and " ',"2020-01-01 0:0:0" |
List built with constant | [1, 2, 3],["graph", "database"],[ ] |
Call alias | nodes ,edges ,paths ,mylist ,groupName ,count ,`ABC-123` |
Call property | nodes.age ,edges.`version-old` ,this.age ,age |
Call x or y of point | location.x ,location.y |
Call schema | edges.@ ,this.@ |
Call element(s) of list | mylist[5] ,mylist[3:6] ,mylist[2:] ,mylist[:4] |
List built with alias | [nodes.level , -1, "NaN"],[groupName , count ] |
Decuplication | DISTINCT nodes.name ,DISTINCT nodes.name, nodes.age |
Numeric operation | 1 + 3 * 2 ,year("2022-04-12") % 4 |
Conditional operation | 3 > 1 ,nodes.age == 20 ,@default ,groupName IN ["graph", "database"] |
Logic operation | @student && age > 10 |
General function operation | now() ,toString(nodes.age) ,length(paths) |
Aggregation function operation | count(nodes) ,collect(nodes.age) |
null judgement | nodes.age IS NULL ,edges.time IS NOT NULL |
CASE function operation | CASE WHEN score >= 80 THEN "pass" ELSE "fail" END |
Regarding call formats of alias please refer to Alias System.
Regarding more functions please refer to Function.