Loading TOC...

xdmp.documentGetMetadataValue

xdmp.documentGetMetadataValue(
   $uri as String,
   $keyName as String
) as String?

Summary

Returns the metadata value of a given document.

Parameters
$uri The document URI.
$keyName Name of the key for the metadata.

Example

xdmp.documentGetMetadataValue("doc.json", "temporalProtectExTime")
=> Metadata of key "temporalProtectExTime" on doc.json

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.