$$transform
Applies a transformation inside a transformer (Useful for piping functions results).
Usage​
{
"$$transform": /* value */,
"to": /* Transformer */
}
Returns​
to
's result type
Arguments​
Argument | Type | Values | Required / Default Value | Description |
---|---|---|---|---|
Primary | Yes | Input value | ||
to | Transformer(##current ) | Input is ##current (input element) | Yes | Transformer to apply on input |
Examples​
Input
Definition
Output
"a,b"
{
"$$transform": "$$split(','):$",
"to": {
"left": "##current[0]",
"right": "##current[1]"
}
}
{
"left": "a",
"right": "b"
}