Loading TOC...

MarkLogic 12 EA 1 Product Documentation
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();
  

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