I have been trying some different data transformers including a combination of different ones but I’m not able to get the result I desire. Help would be very much appreciated!
I used the AI feature by clicking the “Generate” button to generate the code by adding a prompt and the sample data you provided.
Alternatively, you can also achieve it by using the native transformers. Please find the steps below. Please find the overview of the entity transformer below.
First, use Chain multiple entity transformers as we need to use “Data, transform data using mappers and conditions” and “Node, transform nodes” within a single entity transformer.
Add “Data, transform data using mappers and conditions” and put Move using pattern as the first transformer to make each value be in a property called value.
Finally, loop into the data.products array using “Node, transform nodes” and use “Move data between accessors” to transform the key and value properties of each value object into key: value.