I cannot for the life of me figure out how to merge these three items into on bigger JSON item. I have tried scouring this forum, using AI and other forums, but I cannot figure it out.
I have a HTTP request that gives me a max result of 100, if there are more it will give me a next_page href that i check with the IF node. I first tried the merge node by parsing the first http result + every other http result that requests the next 100 items with the given href.
I have also tried Aggregate node, but no matter what I do, I cannot merge these 3 items into 1 bigger, I do not understand what I am doing wrong
I really did wish that would work, although now I do only get 2 items, so it’s an improvement I guess… also tried adding a third input being the false IF test
Are you saying you have 3 pages worth of arrays you want to append into one list? If so then I would recommend using a Loop node and then Merge with append. Inside the loop will be your if to check if you should continue paging or exist out returning the result.
For example here Im scraping a website for products. I page through all pages and collect the results. In this example i did not use a merge but a code block in the end to merge all execution results into one
EDIT: I realize my example does not use the loop node, but another looping mechanism
Starting to think there is no way to do it in my workflow, which is very disappointing as this is something one could easily code, it does make me question how good n8n really is.
I can not think of any other ways to do this process, I have tried multiple ways.