Guides
Building Mapper Logic
How to structure mapper logic when submitting manual logic edits in a workshop
Building Mapper Logic
When making edits in a workshop, you can manually edit the Mapper logic. Lume supports the following manual edits:
- One-to-One
- Default
- Lookup Table
- Aggregate
Structuring the Mapper Logic
To make manual edits, submit the edits to the mapper
property in Run Workshop
. Learn more in the Edit Mapper Guide.
Edits are made on a per target property basis. The manual edit payload is a list of objects, each with two parent keys:
targetField
: The target field the mapping edit will be applied to.transformation
: The transformation to be applied to this target field.
Transformation Types
Set two properties:
extract
: The source property for the one-to-one mapping.default
(optional): The default value if the extract property is not present. If extract is not set, the mapping defaults to this value.
// One-to-One Primitive Extract
{
"targetField": "internal_id",
"transformation": {
"extract": "id"
}
}
// Array Extract
{
"targetField": "internal_ids[*].id",
"transformation": {
"extract": "ids[*]",
"default": null
}
}