
cts.reverseQueryNodes( query as cts.reverseQuery ) as Sequence
Returns the nodes used to construct the specified query.
| Parameters | |
|---|---|
| query | A query. |
const doc = xdmp.toJSON({prop: "hello"});
const query = cts.wordQuery("hello");
const obj = new Object();
obj.query = query;
const rev = cts.reverseQuery(doc);
cts.reverseQueryNodes(rev);
=> {"prop":"hello"}
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.