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()];
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy