xdmp.nodeMetadataValue

xdmp.nodeMetadataValue(
   node as Node,
   keyName as String
) as String?

Summary

Returns the metadata value of a node for a particular key.

Parameters
node The node whose metadata are to be returned.
keyName Name of the key for the metadata.

Example

xdmp.nodeMetadataValue(cts.doc("/foo.json"),"a")
=> Metadata of key "a" on document node /foo.json
Powered by MarkLogic Server | Terms of Use | Privacy Policy