MarkLogic 10 Product Documentation
xdmp:document-get-collections

xdmp:document-get-collections(
   $uri as xs:string
) as xs:string*

Summary

Returns the collections to which a given document belongs.

Parameters
uri The document URI.

Example

xdmp:document-get-collections("chapter5.xml")
=> ("http://marklogic.com/all-books",
        "http://marklogic.com/xml-books")
Powered by MarkLogic Server | Terms of Use | Privacy Policy