view.collectionViewScope

view.collectionViewScope(
   collection as String
) as element(*, view.viewScope)

Summary

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

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

Parameters
collection The name of the collection to define the view scope.

Example

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

  view.collectionViewScope('http://marklogic.com/xdmp/view/songs');

  // Returns a collection-style view scope specification.
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy