
op.eq( valueExpression as String, valueExpression as String ) as booleanExpression
This function returns true if the left and right expressions
return the same value. Otherwise, it returns
false. In expressions, the call should pass the result from an
op.col
function to identify a column.
| Parameters | |
|---|---|
| valueExpression | The left value expression. |
| valueExpression | The right value expression. |
const op = require('/MarkLogic/optic');
op.fromView('main', 'employees')
.where(op.eq(op.col('EmployeeID'), 3))
.select(['EmployeeID', 'FirstName', 'LastName'])
.orderBy('EmployeeID')
.result();
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.