Query result to server API

Hello everyone, I would like to send the result of the query that returns the products in the cart to a server-side API to perform a repeat and write the order lines into the database based on the type of service purchased. At the moment I have rewritten the query in the API but I think there is a more correct way to perform this procedure (e.g. XML or an indexed object)

What’s your question exactly :smiley: ?
It seems like it works what you made? I don’t see any weird things in your server actions. We often need repeats when creating server actions in Wappler

I just wanted to avoid rewriting the cart query in the API maybe sending from the xml page or a json with the cart items to use in the loop.
I wanted to optimize but I can also leave everything as it is!
Thanks

I believe this is what you are looking for?


If so, as you see, it is currently not implemented in Wappler.
You can leave your vote and comment in these threads to show your interest.