Using value expressions
A value expression specifies values in GQL. The GQL standard divides value expressions into boolean and common value expressions. Common value expressions include numeric, string, datetime, duration, list, record, path, and reference value expressions. Value expressions produce a value and can be used in most GQL statements and clauses.
Boolean value expressions
A Boolean value expression produces a truth value as a result. In the previous section, we covered comparison and boolean operators, commonly included in Boolean value expressions.
Here’s an example of a Boolean value expression:
GQL:
LET a = TRUE, b = FALSE RETURN a OR b
In this query, a OR b
is a boolean expression that produces a truth value result. This expression uses Boolean operators.
Here’s another example:
GQL:
LET a = 1 RETURN a > 0
Here a > 0
is an expression using comparison operators. Its result is a truth value, so this expression is...