MarkLogic Server 11.0 Product Documentation
dls.documentVersionUris

dls.documentVersionUris(
   uri as String
) as Sequence

Summary

This function returns the URIs of all versions of a managed document. This includes URIs to the document properties of versions of documents that have been deleted but with history retained. See dls.documentVersionDelete for details on the retain-history argument.

Parameters
uri The URI of the document.

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 URIs of all versions of the 'baz.xml' document. 

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

dls.documentVersionUris('/foo/bar/baz.xml');
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy