Loading TOC...

view.removeField

view.removeField(
   schema-name as String,
   view-name as String,
   field-name as String
) as null

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

const view = require('/MarkLogic/views');

view.removeField('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.