Understanding GQL operators
GQL provides a variety of operators to manipulate values within expressions. These operators enable users to construct search conditions, assign values to variables, compare values to produce predicate results, combine multiple values into one, perform mathematical operations, and utilize built-in functions, among other tasks.
In this section, we will explore the following operators:
- Comparison operators
- Mathematical operators
- Boolean operators
- Assignment operators
Comparison operators
In Chapter 2, Key Concepts of GQL, we learned about essentially comparable values and universally comparable values. Here’s a quick recap: Essentially comparable values can be directly compared, such as two numbers or two identical values. In contrast, universally comparable values typically require a data type conversion implemented by the GQL provider, such as comparing a datetime property with a time string. In this...