MarkLogic Server 11.0 Product Documentation
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.
     
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy