xdmp.nodeMetadata( node as Node ) as Object?
Returns the metadata value of a given node.
xdmp.nodeMetadata(cts.doc("/foo.json")) => Metadata of document node of /foo.json