In GQL, an expression is any syntactic form that produces a value when evaluated. Expressions appear inside WHERE clauses, RETURN items, list constructors, function arguments, and anywhere else the language asks for a value.
This section covers the dedicated expression forms GQL provides:
| Form | Purpose |
|---|---|
| CASE | Choose a value based on conditions |
| LET Value Expression | Bind local names inside a single expression with LET ... IN ... END |
| Value Query Expression | Produce a single value from a VALUE { ... } subquery |
| List Expressions | List comprehension and list quantifiers over an existing list |
| Current Values | Session and temporal keywords such as CURRENT_USER, CURRENT_GRAPH, and CURRENT_TIMESTAMP |