Loading TOC...

xdmp.defaultCollections

xdmp.defaultCollections(
   [$uri as String]
) as Sequence

Summary

Returns the collections any new document would get if the current user were to insert a document without specifying the collections.

Parameters
$uri The document URI to get parent directory.

Example

xdmp.defaultCollections();
=> ("http://example.com/docs",
        "http://example.com/manuals")

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.