MarkLogic 12 Product Documentation
cts.param

cts.param(
   param as String
) as Object

Summary

Allow a cts:query to be parameterized.

Parameters
param The parameter used to substitute later.

Example

   const queryTemplate=cts.wordQuery(cts.param("wordParam"))
   const preparedQuery=cts.bindQueryParams(queryTemplate,{"wordParam":"cat"})
   cts.uris(null,null,preparedQuery)

Powered by MarkLogic Server | Terms of Use | Privacy Policy