
xdmp:databases() as xs:unsignedLong*
Returns a sequence of the IDs of all the databases in the system.
xdmp:databases()
=> (14389140626518478220,
8456374036761185098,
10615125154705099114)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.