Loading TOC...

MarkLogic 9 Product Documentation
xdmp.forestDatabases

xdmp.forestDatabases(
   forest as (Number|String)
) as (Number|String)?

Summary

Returns the database ID corresponding to the database to which the specified forest belongs, or empty sequence if the forest belongs to no database.

Parameters
forest A forest ID.

Example

xdmp.forestDatabases(xdmp.forest("Documents"));
=> 2032458498523149048

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