MarkLogic Server 11.0 Product Documentation
view:get-field

view:get-field(
   $schema-name as xs:string,
   $view-name as xs:string,
   $field-name as xs:string
) as element(view:field)

Summary

This function returns the element specification for the named field.

Parameters
schema-name The name of the schema.
view-name The name of the view.
field-name The name of the field.

Example


xquery version "1.0-ml"; 
 
import module namespace view = "http://marklogic.com/xdmp/views" 
      at "/MarkLogic/views.xqy";

view:get-field("main", "employees",  "Employee") 

(: Returns the element specification for the "Employee" field. :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy