xdmp:default-collections

xdmp:default-collections(
   [$uri as xs:string]
) as xs:string*

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:default-collections()
=> ("http://example.com/docs",
        "http://example.com/manuals")
Powered by MarkLogic Server | Terms of Use | Privacy Policy