Loading TOC...

MarkLogic Server 11.0 Product Documentation
xdmp.nodeDatabase

xdmp.nodeDatabase(
   node as Node
) as (Number|String)?

Summary

Returns the database id where the parameter is stored. If the specified node does not come from a document in a database, then xdmp.nodeDatabase returns an empty list.

Parameters
node The node whose database is returned.

Example

xdmp.nodeDatabase(cts.doc("/dog.json"));
=> 18384173956586417397

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