
cts.queryParams( query as cts.query ) as Object*
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. |
const queryTemplate=cts.wordQuery(cts.param("wordParam"))
cts.queryParams(queryTemplate)
=> {
"parameter": "wordParam",
"type": "String*"
}
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.