Loading TOC...

dls.documentsQuery

dls.documentsQuery() as cts.query

Summary

This function returns a query that matches the latest versions of the managed documents in the database.

Required Privileges

The dls-user role is required to run this function, or the privilege:
http://marklogic.com/xdmp/privileges/dls-user

Example

// Returns the latest versions of the managed documents in the database.

const dls = require('/MarkLogic/dls');

cts.search[fn.doc(), dls.documentsQuery()];
   

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