How to collect details of steps of for loop.
Given the flow of the for loop. The collection of the iter will result in an array of undefined because the unpublish step returns undefined. However I want to have more control over the collection of the results, I want the details of productSet mutation in this case. The publish/unpubish do not give results they can only fail.
How would one easily built something like that. Having to create a seperate function to merge stuff seems very, uhm empty
//collector.ts
export function main (result: object) { return result }
That can work, but still feels odd that I need an additional function to handle that?
1 Reply
'In the end' I wrote the collector.ts file and that works.