Loading TOC...

dls.documentIsManaged

dls.documentIsManaged(
   $uri as String
) as Boolean

Summary

This function determines whether or not the document at the specified URI is managed. This function returns true if the document at the URI is either a managed document or a numbered version of a managed document. Otherwise false is returned.

Parameters
$uri The URI of the document to test.

Required Privileges

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

Example

// Returns true if document is managed.  Otherwise false.

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

dls.documentIsManaged('/foo/bar/baz.xml');
   

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