Repeat objects in one 'list'

Hi,
I have a simple api with a repeater which contains one query.

I would like to merge or join the query result of each repeat into one json output so I can list this result on a page.

How can I do this? It there a way to add the objects from the repeat to an array variable?
or am I thinking too complicated and is there another way?

best
Menno

This is an example I get from the repeater. How can you make it so that all items are combined?

{

"repeat_get_items_from_environments": [
    {
        "environment_id": 3,
        "query_get_items": [
            {
                "item_id": 37,
                "item_title": "Title 1",
                "item_body": "Hello 1",
            }
        ]
    },
    {
        "environment_id": 4,
        "query_get_items": [
            {
                "item_id": 57,
                "item_title": "Title 2",
                "item_body": "Hello 2",
            },
            {
                "item_id": 40,
                "item_title": "Title 3",
                "item_body": "Hello 3",
            },
            {
                "item_id": 23,
                "item_title": "Title 4",
                "item_body": "Hello 4",
            }
        ]
    }
]
}

I've asked a similar question, see if it helps:

I haven't personally tested any of the solutions proposed yet, let me know if any of them works for you

Thanks @Apple, I gave it a try,
the thing is that each time the repeat goes through it’s step it returns an array.
Then push.toArray result in a nested array.
But it is perhaps one step closer to a solution.

I tried to concat it with this option but that returns null:
Data.push(…obj)

Ok, then you don't want to push, you want to concat:

I was just reading the exact same document :wink: