
xdmp.documentGetCollections( uri as String ) as String[]
Returns the collections to which a given document belongs.
| Parameters | |
|---|---|
| uri | The document URI. |
xdmp.documentGetCollections("chapter5.json")
=> ["http://marklogic.com/all-books",
"http://marklogic.com/xml-books"]
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.