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:

  1. targetField: The target field the mapping edit will be applied to.
  2. transformation: The transformation to be applied to this target field.

Transformation Types

Set two properties:

  1. extract: The source property for the one-to-one mapping.
  2. 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
    }
}