MarkLogic 10 Product Documentation
view:fields

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

Summary

This function returns the fields set on the named view.

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

Example


xquery version "1.0-ml"; 
 
import module namespace view = "http://marklogic.com/xdmp/views" 
      at "/MarkLogic/views.xqy";
 
view:fields("main", "employees") 

(: Returns the fields set on the "employees" view. :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy