I’m making a csv import of products on palettes… I want it to insert data into two different tables - 1. all the products and 2. only unique palettes from that file.
Step one works just fine but I’m having a hard time with getting unique palettes names…
doing the above will give me the desired number of repeats - once for every unique palette but the names will come out as blank…
Fair enough, but I'm only using the output here to show that I'm getting empty array.
The real issue is getting unique values and using them in the repeat step.
EDIT:
Also, I noticed that I’m only having this issue with .unique formatter. If, for example, I filter it using some “where” condition it’ll work fine.
I did some more experimenting and noticed that .unique formatter outputs a single object with all the unique values as properties and other formatters like .where outputs an array of objects…