Input Transform
Overview
Input Transform
allows taking all the values that are in the doc
context and attaching them to a dedicated doc
node.
Configuration
Key to map the input to
- thedoc
node you wish the existingdoc
nodes to be attached to
Examples
Input
{
"name": "John Smith",
"age": 21
}
Step configuration
Input | Value |
---|---|
Key to map the input to | body |
Result
{
"doc": {
"body": {
"name": "John Smith",
"age": 21
}
},
"errors": []
}
Example flow
Sample Input transform flow
tags: []
steps:
- stepType: input-transform
config:
key: body
name: Input Transform
description: ""
condition: ""
sampleData:
name: John Smith
age: 21