Loading TOC...

view.getColumn

view.getColumn(
   schema-name as String,
   view-name as String,
   column-name as String
) as element(view.column)

Summary

This function returns the named column specification set in the named view in the named schema.

Parameters
schema-name The name of the schema specification containing the view.
view-name The name of the view containing the column specification.
column-name The name of the column specification to be returned.

Example

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

view.getColumn('main', 'songs', 'title');

// Returns the 'title' column from 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.