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"]