MarkLogic Server 11.0 Product Documentation
view.getColumnview.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.
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.