view.elementViewScope( localname as xs.QName ) as element(*, view.viewScope)
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. |
const view = require('/MarkLogic/views'); view.elementViewScope(xs.QName('SONG')); // Returns the view scope specification for the element, 'SONG'.