Loading TOC...

MarkLogic 12 EA 2 Product Documentation
map:get

map:get(
   $map as map:map,
   $key as xs:string
) as item()*

Summary

Get a value from a map.

Parameters
map A map.
key A key.

Example

let $table := map:map()
let $_ := map:put($table, "some-key", <info>45683</info>)
return map:get($table, "some-key")
=> <info>45683</info>

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