Mapper
General
The Mapper node can be used to easily map from one data type to another. All functionality of this node can also be done with link mapping.
Input
Source: Receives an
Objector a value type eg.String,NumberorBooleanwith the values to map. Learn more on object-mapper.
Examples:
Object ➡ Object
"bar.foo": "baz" & {"baz": {"foo": "*value*"}} ➡ {"baz": "*value*"}`
Object ➡ Value
"foo[0].bar" & {"foo": [{"bar: *value*"}]} ➡ *value*
Value ➡ Object
*value* & "foo[0].bar" ➡ {"foo": [{"bar: *value*"}]}
Output
Out: Returns an
Objector a value type eg.String,NumberorBooleanwith the mapped values. Learn more on object-mapper.
Use Cases
Register a user to a database.
Request (Post) ➡ Mapper (Get) ➡ Response (200)
Last updated
Was this helpful?