MarkLogic Server 11.0 Product Documentation
view.columns

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

Summary

This function returns the sequence of column specifications set in the named view in the named schema.

Parameters
schema-name The name of the schema specification containing the view.
view-name The name of the view containing the column specifications.

Example

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

  view.columns('main', 'songs');

  // Returns the columns set in the 'songs' view in the 'main' schema.
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy