Loading TOC...

MarkLogic 10 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');
   

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