Category |
Operator |
---|---|
Information abstractor | . (access schema or property of a NODE or EDGE type, access x or y of a point type, access key of a object type), [ ] (access one or multiple elements of a list type) |
List builder | [ ] (build a list type) |
Full-text index prefix | ~ (prompt for full-text index name during full-text filtering, note the difference from =~ ) |
Schema checker | @ |
String concatenator | + |
Numeric operator | + ,- ,* ,/ ,% |
Comparison operator | == ,!= ,> ,< ,>= ,<= ,<> ,<=> |
Belonging judgement operator | IN ,NIN |
Containing judgement operator | CONTAINS |
Regular matching operator | =~ |
Null judgement operator | IS NULL ,IS NOT NULL |
Logic operator | && ,|| ,! ,XOR |
Deduplication operator | DISTINCT |
Regarding the information abstractors please refer to documentation Alias System.
Regarding the full-text index prefix please refer to documentation Full-text
For the rest of operators please refer to Operator Details.
The following table shows the precedence of some operators (1 represents the highest):
Precedence | Operator |
Type | Category |
---|---|---|---|
1 | ( ) | Boost local priority | |
2 | @ | Unary | conditional operator |
3 | ! | Unary | logic operator |
4 | *, /, % | Binary | numeric operator |
5 | +, - | Binary | numeric operator, string concatenator |
6 | >, <, >= , <= , <> , <=>, IN, NIN, CONTAINS, =~ | Binary | conditional operator |
7 | == , != | Binary | conditional operator |
8 | && | Binary | logic operator |
9 | XOR, || | Binary | logic operator |