view.fields

view.fields(
   schema-name as String,
   view-name as String
) as Sequence

Summary

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.

Example

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

view.fields('main', 'employees'); 

// Returns the fields set on the "employees" view.
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy