These operations allow you to filter and select specific elements from your graph based on conditions.
WHERE
WHERE
step must evaluate to a boolean value.
If the condition is not met, the element will be filtered out.
EQ
and NEQ
can be used to compare strings, booleans, and numbers.
GT
, GTE
, LT
, and LTE
can only be used to compare numbers.
Operation | Description | Example |
---|---|---|
::EQ(value) | Equals | ::WHERE(_::{status}::EQ("active")) |
::NEQ(value) | Not equals | ::WHERE(_::{age}::NEQ(25)) |
Operation | Description | Example |
---|---|---|
::GT(value) | Greater than | ::WHERE(_::{age}::GT(25)) |
::LT(value) | Less than | ::WHERE(_::{age}::LT(30)) |
::GTE(value) | Greater than or equal | ::WHERE(_::{rating}::GTE(4.5)) |
::LTE(value) | Less than or equal | ::WHERE(_::{priority}::LTE(2)) |
EXISTS
RANGE
RANGE(0, 10)
will return 10 elements 0 through 9.
Both the start and end are required, and must be a positive integer.
ORDER
Asc
) or descending (Desc
).