view.collectionViewScope( collection as String ) as element(*, view.viewScope)
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. |
const view = require('/MarkLogic/views'); view.collectionViewScope('http://marklogic.com/xdmp/view/songs'); // Returns a collection-style view scope specification.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.