MarkLogic 9 Product Documentation
view.getViewScope

view.getViewScope(
   schema-name as String,
   view-name as String
) as element(*, view.viewScope)

Summary

This function returns the scope of 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 from which to return the scope.

Example

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

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

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