Iteration with GraphQL cursor

Hello, I'm struggling with this and have read several posts in the forum but I cant figure out to solve my issue. I guess the process is simple enough but what I'm missing is how to use the "nextCursor" for the iteration.

Here is my workflow:

efef

  1. Create a list with the first cursor value that must be empty and then iterate

  2. Use Input in the result table to input the cursor from the main module

  3. Run the GraphQL query using parameter cursor

  4. Parse the JSON and as we can see I get what I want including the "nextCursor"

  5. The result is then returned to the main module but only run once since the cursor is not set to nextCursor

So the question is really how do I get the nextCursor value to the main module so the next iteration uses this and not the empty cursor from the initial start?