Transforming Data
Transformations are the snippets of the logic applied to a single events passing through the link between two ports. Transformations help to transform the structure and format of the data between components. The purpose of transformations is to reduce the complexity of accessing and integrating data that does not perfectly match the standardized inputs and outputs of the components. Use transformations to "glue" the components together. Avoid using transformations to implement application logic, because that will decrease the maintainability and readability of the dataflow graph.
How to apply transformation?
To apply data transformation, select the wire between two components and open Settings dialog (press Spacebar
or right-click and select Settings in the context menu). Then select transformation type (in the middle of the dialog window) that suites your needs.
You can chain multiple transformations on the same wire. Each next transformation in the chain will be applied to the output of the previous transformation. Click on a "+
" button to add next transformation in the chain.
Query Transformations
Query transformations provide general-purpose query language for JSON
data format. You can extract and transform elements from a JSON document of any arbitrary structure.
JMESpath
JMESPath is a query language for JSON. You can extract and transform elements from a JSON document. Learn more about JMESpath query language.
KelpQL
KelpQL is a query language for JS Object. You can extract and transform elements from a JS document.
JSPath
JSPath is another query language for JSON that enables you to find data within your JSON documents. Learn more about JSPath query language.
General Transformations
- Convert signals to data events. Convert signal events to data events.
- Filter out data events. Filter out all or specific data events from the stream.
- Filter out signalss. Filter out all or specific signals events from the stream.
- KelpQL filter. Filter data events using KelpQL logical expressions.
- JMESpath filter. Filter data events using JMESPath logical expressions.
- Log to browser console. Log incoming events to the browser console.
- JSON stringify. Convert a
JSON
object into aString
. - JSON parse. Convert a
String
into aJSON
.