Loading TOC...

MarkLogic 12 Product Documentation
cts.queryParams

cts.queryParams(
   query as cts.query
) as Object*

Summary

Output a sequence of JSON objects with parameters used in the query. This function also returns the type of a parameter.

Parameters
query Input query from which to extract the parameter names and types.

Example

const queryTemplate=cts.wordQuery(cts.param("wordParam")) 
cts.queryParams(queryTemplate)

=> {
"parameter": "wordParam", 
"type": "String*"
}

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