{{value | pipeName:arg1:arg2}}. Chain multiple pipes with |.
Syntax
Aggregation Pipes
Compute aggregate values from arrays.sum
Sum numeric values in an array.| Argument | Description |
|---|---|
| field | Field name to sum (optional) |
avg
Calculate average of numeric values.min
Find minimum value in array.max
Find maximum value in array.count
Count items in array.stats
Get all statistics at once.Array Pipes
Manipulate arrays of data.filter
Filter array items by condition.=, !=, >, <, >=, <=
find
Find first matching item.null if not found.
map
Extract a field from each item.sort
Sort array by field.| Argument | Description |
|---|---|
| field | Field to sort by |
| direction | asc (default) or desc |
first
Get first item in array.last
Get last item in array.slice
Get first N items.flatten
Flatten nested arrays one level.unique
Remove duplicate items.reverse
Reverse array order.indexOf
Find the index of a value in an array.-1 if not found.
String Pipes
Transform string values.upper
Convert to uppercase.lower
Convert to lowercase.trim
Remove leading/trailing whitespace.replace
Replace all occurrences.contains
Check if string contains substring (or array contains value).true or false.
match
Find regex matches.null.
extract
Extract regex capture groups.Utility Pipes
General-purpose transformations.join
Join array into string.,
split
Split string into array.,
as
Store value in context for later use.default
Provide fallback for null/missing values.Math Pipes
Perform arithmetic operations.multiply
Multiply by a number.divide
Divide by a number.add
Add a number.subtract
Subtract a number.round
Round to decimal places.| Argument | Description |
|---|---|
| decimals | Decimal places (default: 0) |
abs
Get absolute value.Formatting Pipes
Format values for display.currency
Format a number as currency.| Argument | Description |
|---|---|
| code | Currency code (USD, EUR, GBP, NGN, etc.) |
| precision | Decimal places (optional, defaults to currency standard) |
Pagination Pipes
Handle paginated data.paginate
Apply pagination to array.| Argument | Description |
|---|---|
| page | Page number (1-indexed) |
| limit | Items per page (default: 10) |
cursor
Apply cursor-based pagination.| Argument | Description |
|---|---|
| field | Cursor field (default: id) |
| cursor | Current cursor value |
| limit | Items per page (default: 10) |
Date/Time Pipes
Work with dates and timestamps.now
Get current timestamp.formatDate
Format a date value.| Token | Description |
|---|---|
| YYYY | 4-digit year |
| YY | 2-digit year |
| MM | Month (01-12) |
| DD | Day (01-31) |
| HH | Hour 24h (00-23) |
| hh | Hour 12h (01-12) |
| mm | Minutes (00-59) |
| ss | Seconds (00-59) |
parseDate
Parse date string.addDays
Add days to a date.addHours
Add hours to a date.diffDays
Calculate difference in days.Object Pipes
Manipulate objects.keys
Get object keys as array.values
Get object values as array.pick
Select specific fields.omit
Exclude specific fields.merge
Merge with another object.Chaining Pipes
Combine multiple pipes:Examples
Filtered and Paginated List
Computed Summary
Safe Defaults
Date Formatting
Currency Formatting
Related
- Template Expressions - Expression syntax
- Transform Node - Data transformation
- Set Node - Store computed values