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
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to