Loading TOC...

MarkLogic 12 EA 2 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")

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