Hi,
How can I merge two or three database queries or Repeats? They all have the same columns, I made sure of that.
Thank you.
Repeat {some_datasource}
- Set Value id: 123
- Set Value name: John
Database Query users:
- id
- name
Hi,
How can I merge two or three database queries or Repeats? They all have the same columns, I made sure of that.
Thank you.
Repeat {some_datasource}
- Set Value id: 123
- Set Value name: John
Database Query users:
- id
- name
This is from ChatGPT. It's all Greek to me but maybe you can make sense of it.
Great β Wappler makes this very straightforward because both Repeat Regions and Database Queries can be turned into arrays, and then you can merge them inside a Server Action.
There are two main ways to merge multiple queries/arrays in Wappler.
In a Server Action:
{ id: 123, name: 'John' } items.users table).This produces a single merged array.
No formatting needed
Keeps column structure (id, name, etc.)
server action
ββ Repeat (items you manually build)
β ββ Set Value: id, name
ββ Database Query: users
ββ Array Merge
input1: repeat
input2: users
The explanation looks convincing, but there's no "Array Merge" step ![]()
Thanks for chiming in though
What about using server connect array?
https://community.wappler.io/t/working-with-server-connect-array-lists/47668
Repeat -> add in array
There is an "Add all to array" step that you can use.
So query > add all to array, then another query > add all to array
the resulting array will contain both query results.