Loading TOC...

MarkLogic Server 11.0 Product Documentation
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.

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.
   

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.