Skip to content

Conversation

@rafaela-mansini
Copy link
Contributor

This change adds a new helper function in the Tools/Mapper/Mapper class, which merges results from the map() and mapAll() functions into a given mapper.

Usage:

media: "obj['gallery'] ? mapper.mergeMapping('single_media_from_catalog', [
  ['map', obj['gallery']['packshot'], 'packshot'],
  ['map', obj['gallery']['eRetail']['main'], 'eRetail'],
  ['map', obj['gallery']['map'], 'map'],
  ['mapAll', obj['gallery']['eRetail']['nonBrand'], 'eRetailerNonBrand']
]) : null"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant