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.

circle-info

For more complex transformation the Code node can be used.

Input

  • Source: Receives an Object or a value type eg. String, Number or Boolean with the values to map. Learn more on object-mapperarrow-up-right.

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 Object or a value type eg. String, Number or Boolean with the mapped values. Learn more on object-mapperarrow-up-right.

Use Cases

Register a user to a database.

  • Request (Post) ➡ Mapper (Get) ➡ Response (200)

Last updated