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.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.