<value1> == <value2>Example: Judge whether "Ultipa" equals "U1tipa"
UQLreturn "Ultipa" == "U1tipa"
Result0
Example: Judge whether PI equals 3
UQLreturn pi() == 3
Result0
Example: Judge each row of an alias whether it equals 2
UQLuncollect [1,2,3,2,2] as a return a == 2
Result0 1 0 1 1
Sample graph: (to be used for the following examples)

Example: Find nodes whose age is 27
UQLfind().nodes({age == 27}) as n return n{*}
Result|--------------- @professor --------------| | _id | _uuid | age | email | |-------|-------|-------|-----------------| | P002 | 2 | 27 | [email protected] | |---------------- @student ---------------| | _id | _uuid | age | email | |-------|-------|-------|-----------------| | S001 | 3 | 27 | [email protected] |
Example: Find nodes of @professor, whose age is 27
UQLfind().nodes({@professor.age == 27}) as n return n{*}
Result|--------------- @professor --------------| | _id | _uuid | age | email | |-------|-------|-------|-----------------| | P002 | 2 | 27 | [email protected] |
When a filter only judges whether the _uuid of the current node/edge equals an integer, the filter can be abbreviated as below:
| Standard Form | Abbreviated Form | Description |
|---|---|---|
| ({ _uuid == 10}) | (10) | |
({ _uuid == int}) | (int) | int is the alias of an integer |
({ _uuid == node._uuid}) | (node) | node is the alias of a node |
({ _uuid == edge._uuid}) | (edge) | edge is the alias of an edge |
Example: Find node with _uuid 1
UQLfind().nodes(1) as n return n{*}
Result|--------------- @professor --------------| | _id | _uuid | age | email | |-------|-------|-------|-----------------| | P001 | 1 | 53 | [email protected] |