Xano native way to correcly handle array parameters in an URL query

Hi,

So I searched the forum everywhere to see if there was an answer, but did not find any. I've been struggling a couple hours on this problem before finding a solution which I'm not fond of.

Here's my problem

I want to pass an array in a GET external api call that has query parameters. The resulting query parameters should look like this : myarray[]='hello'&myarray[]='world', passing successfully the array to the target system as follows : ['hello','world']. This is a common way to pass arrays to APIs through query parameters. It's nothing new.

However, I cannot find the proper way to do it in Xano. It seems to have a behaviour on it's own making this impossible.

If I use URL_ADDARG multiple times with the key name and brackets, it only takes the last element and overwrites everything before.

If I use URL_ADDARG and pass an array as value OR use the params section of the External API request action where I set "myarray" then filter push "hello" and then push filter "world", it will literally transfer the array as a string in the URL.

The only way I found to bypass this is to dumb it down to simple CONCATS with the literal string.

Is there really no way Xano can handle arrays with URL_ADDARG or the params section of the External API Request? I just want some feedback to know if I'm doing something wrong ๐Ÿ˜ž.

Thanks !

Matt.

1
1 reply