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",
}
]
}
]
}
Community Page
Last updated:
Last updated: