xdmp.nodeGetInfo( node as Node, [output-kind as String[]] ) as
This function returns information about the node i.e. the node-repid, uniquekey, compressed tree size and database of an input node. Database is true if the node is read from the database, false otherwise.
xdmp.nodeGetInfo(cts.doc("http://marklogic.com/document"),"json"); ==> { "compressedTreeSize": 78, "nodeRepId": 0, "nodeUniqueKey": "152469828419602699", "databaseNode": true }
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.