On 03/11/2023 08:30, Csaba Fekete wrote:

I defined an array variable in my XQUERY:

declare variable $caas array(xs:integer)external := [];

How can I assign a value (e.g [1,2]) to this variable through the URL?
I have already tried:
http://host:port/rest/dbname?run=query.xq&$ca[]=1&$ca[]=2
That didn't work. Neither did this:
http://host:port/rest/dbname?run=query.xq&$ca=1,2

Perhaps

  $ca=[1,2]

? Not sure whether square brackets in a URL query part need some
escaping, however.

Reply via email to