MarkLogic 10 Product Documentation
view:views

view:views(
   $schema-name as xs:string
) as element(view:view)*

Summary

This function returns all of the view specifications in the named schema.

Parameters
schema-name The name of the schema specification containing the views to be returned.

Example

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

  (: Returns all of the views in the 'main' schema. :)
     
Powered by MarkLogic Server | Terms of Use | Privacy Policy