Loading TOC...

view:remove-field

view:remove-field(
   $schema-name as xs:string,
   $view-name as xs:string,
   $field-name as xs:string
) as empty-sequence()

Summary

This function removes a field from the named view.

Parameters
$schema-name The name of the schema.
$view-name The name of the view.
$field-name The name of the field to be removed.

Example


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

(: Removes the "Employee" field from the "employees" view. :)
    

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