dls.documentsQuery() as cts.query
This function returns a query that matches the latest versions of the managed documents in the database.
dls-user
role is required to run
this function, or the privilege:http://marklogic.com/xdmp/privileges/dls-user
// Returns the latest versions of the managed documents in the database. const dls = require('/MarkLogic/dls'); cts.search[fn.doc(), dls.documentsQuery()];
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.