op.schemaCol

op.schemaCol(
   schemaName as String,
   viewName as String,
   colName as String
) as columnIdentifier

Summary

Unambiguously identifies a column with the schema name, view name, and column name. Useful only for columns provided by a view.

Parameters
schemaName The name of the schema.
viewName The name of the view.
colName The name of the column.

Example

const op = require('/MarkLogic/optic');

op.fromView('main', 'employees')
	      .orderBy(op.schemaCol('main', 'employees', 'EmployeeID'))
	      .result();
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy