Appearance
Filter
The Filter node keeps only the rows that match a field condition. It removes rows that do not match, reducing the dataset.
Configuration
| Property | Type | Default | Description |
|---|---|---|---|
field | string | -- | Required. The field name to test. |
operator | string | eq | The comparison operator. |
value | string | -- | The value to compare against (not used for empty and not_empty). |
Operators
| Operator | Name | Description |
|---|---|---|
eq | Equals | String equality: field == value |
neq | Not equals | String inequality: field != value |
gt | Greater than | Numeric comparison: field > value |
lt | Less than | Numeric comparison: field < value |
gte | Greater or equal | Numeric comparison: field >= value |
lte | Less or equal | Numeric comparison: field <= value |
contains | Contains | Substring match: field contains value |
not_empty | Not empty | Field is not null and not empty string |
empty | Empty | Field is null or empty string |
Input
Accepts an array of rows.
Output
Returns a filtered array of rows containing only the rows where the condition is true. The output preserves the original row structure.
How It Works
The node iterates over each input row and evaluates the condition:
- String operators (
eq,neq,contains): Both the field value and comparison value are cast to strings. - Numeric operators (
gt,lt,gte,lte): Both values are cast to floats. - Existence operators (
empty,not_empty): Only check if the field is null or empty string.
Example Use Cases
Keep only active items
field: "status"
operator: "eq"
value: "active"Filter high-value orders
field: "total"
operator: "gte"
value: "100"Remove rows with missing emails
field: "email"
operator: "not_empty"Search by keyword
field: "title"
operator: "contains"
value: "widget"Chaining filters
Connect multiple Filter nodes in sequence for AND logic:
Table Query --> Filter (status = "active") --> Filter (price > 50) --> ResultTIP
For complex filtering with full expression support, use the If/Else node instead. The Filter node is simpler and faster for single-field conditions.
TIP
When possible, use the whereField / whereOp / whereValue options on source nodes (Table Query, Post Query) to filter at the database level. The Filter node operates on in-memory data, which is less efficient for large datasets.