Loading TOC...

op.eq

op.eq(
   $valueExpression as String,
   $valueExpression as String
) as booleanExpression

Summary

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.

Example


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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.