
view.fields( schema-name as String, view-name as String ) as Sequence
This function returns the fields set on the named view.
| Parameters | |
|---|---|
| schema-name | The name of the schema. |
| view-name | The name of the view. |
const view = require('/MarkLogic/views');
view.fields('main', 'employees');
// Returns the fields set on the "employees" view.