op.eq

op.eq(
   valueExpression as String
) as booleanExpression

Summary

This function takes two or more expressions and returns true if all of the expressions return the same value. Otherwise, it returns false. The expressions can include calls to the op.col function to get the value of a column.

Parameters
valueExpression Two or more expressions.

Example

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

op.fromView('main', 'employees')
   .where(op.eq(op.col('EmployeeID'), 3))
   .select(['EmployeeID', 'FirstName', 'LastName'])
   .orderBy('EmployeeID')
   .result();
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy