Loading TOC...

rest:get-raw-query-params

rest:get-raw-query-params() as map:map

Summary

This function extracts all of the query parameters and returns them in a map. This does not include the parameters that would be derived from matching the URI string. No error checking or type conversion is performed by this function. The parameters returned by this function are all strings, as they are not type checked.

Example

  xquery version "1.0-ml"; 
 
  import module namespace rest="http://marklogic.com/appservices/rest"
     at "/MarkLogic/appservices/utils/rest.xqy";

  rest:get-raw-query-params ( )

  (: Returns a map of the query parameters. :)
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.