Loading TOC...

view.fields

view.fields(
   $schema-name as String,
   $view-name as String
) as Sequence

Summary

This function returns the fields set on the named view.

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

Example

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

view.fields('main', 'employees'); 

// Returns the fields set on the "employees" view.
   

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