Loading TOC...

MarkLogic 12 EA 1 Product Documentation
xdmp:function-return-type

xdmp:function-return-type(
   $function as function(*)
) as xs:string

Summary

Returns the return type from the given function's signature.

Parameters
function The function value.

Example

let $fn := fn:empty#1
return
  xdmp:function-return-type($fn)
=> "xs:boolean"

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