
dls.documentIsManaged( uri as String ) as Boolean
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. |
dls-user role is required to run
this function, or the privilege:http://marklogic.com/xdmp/privileges/dls-user
// Returns true if document is managed. Otherwise false.
const dls = require('/MarkLogic/dls');
dls.documentIsManaged('/foo/bar/baz.xml');
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.