I’m trying to loop through an array and transform it by getting the values from storage. Tried value mapper and node mapper and can’t make it work. There are no guides about it as well.
i need to transform it to a new array but the values will need to come from an entity that is already in storage
"id": 1,
"values:[
{
"name": "text from storage based on 1",
"value": "text from another storage based on 1"
},
{
"name": "text from storage based on 2",
"value": "text from another storage based on 3"
}
]
}
Unfortunately, getting only one property from a storage entity is impossible at the moment. Therefore, you should put more transformer(s) to remove the other properties you don’t actually need.
When you are inside, a “Node, transform nodes”, it is not possible to get a value outside the array. I would suggest copying the values you need from the parent to the array using Recursively copy values to children.