view.getField

view.getField(
   schema-name as String,
   view-name as String,
   field-name as String
) as element(view.field)

Summary

This function returns the element specification for the named field.

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

Example

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

view.getField('main', 'employees',  'Employee');

// Returns the element specification for the "Employee" field.
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy