[MarkLogic Dev General] List all collection names
John Zhong
john at yuxipacific.com
Wed Nov 30 20:24:00 PST 2011
Hi all,
I want to know if there any apis to return all the collection names in a
database? I only can think out a stupid way:
let $collections := for $doc in fn:doc()
return
xdmp:document-get-collections(fn:base-uri($doc))
return fn:distinct-values($collections)
Yes, I know those names are what I define before adding files into
collections, but I just want to know if there is a way to do that.
Thank you,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20111201/d7ad43c0/attachment.html
More information about the General
mailing list