Loading TOC...

xdmp.nodeCollections

xdmp.nodeCollections(
   $node as Node
) as String[]

Summary

Returns any collections for the node's document in the database. If the specified node does not come from a document in a database, then xdmp:node-collections returns an empty sequence.

Parameters
$node The node whose collections are to be returned.

Example

xdmp.nodeCollections(cts.doc("/dog.json"));
=> ["http://acme.com/this-collection", "http://acme.com/that-collection"]

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.