MarkLogic 12 EA 1 Product Documentation
admin:database-path-field

admin:database-path-field(
   $field-name as xs:string,
   $field-paths as element(db:field-path)+
) as element(db:field)

Summary

This function constructs a field specification that has field paths.

Parameters
field-name The name of the field.
field-paths The field paths specification, typically the result of one or more calls for admin:database-field-path.

Example



xquery version "1.0-ml";

import module namespace admin = "http://marklogic.com/xdmp/admin"
      at "/MarkLogic/admin.xqy";

let $field-name := "myField"
let $field-paths := admin:database-field-path("/a/b", xs:double(2.0))

return
   admin:database-path-field($field-name,$field-paths)

 
Powered by MarkLogic Server | Terms of Use | Privacy Policy