xdmp:database-name( $database-id as xs:unsignedLong ) as xs:string
Return the name of the database with the given ID.
xdmp:database-name(8456374036761185098) => "Documents"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.