
view.removeField( schema-name as String, view-name as String, field-name as String ) as null
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. |
const view = require('/MarkLogic/views');
view.removeField('main', 'employees', 'Employee');
// Removes the "Employee" field from the "employees" view.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.