MarkLogic Server 11.0 Product Documentation
view.elementViewScope

view.elementViewScope(
   localname as xs.QName
) as element(*, view.viewScope)

Summary

This function constructs a new element-style view scope specification.

For details on view scoping, see Defining View Scope in the SQL Data Modeling Guide.

Parameters
localname The name of the element on which to define the view scope.

Example

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

view.elementViewScope(xs.QName('SONG'));

// Returns the view scope specification for the element, 'SONG'.
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy