Navigation

Filter Component

Prune and refine your dataset by applying logical conditions to specific fields.

Last updated:

The Filter Component is a core component for data pruning. It allows you to define one or more conditions that a record must meet to pass through to the next component in the pipeline.

โš™๏ธ Configuration

PropertyTypeDescription
Field PathstringThe JSON path to the field you want to evaluate (e.g., user.age).
OperatorenumThe logical operator to apply (equals, greater than, regex, etc.).
ValueanyThe target value to compare against.

๐Ÿ” Supported Operators

  • Numeric: >, <, >=, <=, equals, not_equals
  • String: contains, not_contains, starts_with, ends_with, regex
  • Existence: exists (field is present and not null), empty (field is null, undefined, or an empty string/array)

๐Ÿ’ก Example

If you want to filter a list of users to find only those from the "Engineering" department who are older than 30:

  1. Path: department | Operator: equals | Value: Engineering
  2. Path: age | Operator: > | Value: 30

๐Ÿš€ Best Practices

  • Use Regex for complex patterns: The filter component supports full JavaScript regular expressions.
  • Nested paths: Use dot notation to reach deep fields (e.g., profile.settings.notifications.enabled).
  • Data types: Ensure your comparison value matches the type of the field (e.g., don't compare a string "30" to a numeric age field if strict equality is required).