MarkLogic Server 11.0 Product Documentation
dls.documentVersionQuery

dls.documentVersionQuery(
   version as (Number|String)
) as cts.propertiesFragmentQuery

Summary

This function returns a query that matches the specified version of the managed documents.

Parameters
version The version of the managed documents.

Required Privileges

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

Example

// Returns Version 3 of all of the managed documents in the database.

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

cts.search(dls.documentVersionQuery(3));
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy