Loading TOC...

MarkLogic 12 EA 2 Product Documentation
cts.reverseQueryNodes

cts.reverseQueryNodes(
   query as cts.reverseQuery
) as Sequence

Summary

Returns the nodes used to construct the specified query.

Parameters
query A query.

Example

const doc = xdmp.toJSON({prop: "hello"});
const query = cts.wordQuery("hello");
let obj = new Object();
obj.query = query;
const rev = cts.reverseQuery(doc);
cts.reverseQueryNodes(rev);

  => {"prop":"hello"}

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