Loading TOC...

view.get

view.get(
   schema-name as String,
   view-name as String
) as element(view.view)

Summary

This function returns the named view from the named schema specification.

Parameters
schema-name The name of the schema containing the view.
view-name The name of the view.

Example

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

view.get('main', 'songs');

// Returns the 'songs' view in the 'main' schema.
   

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