op.eq( valueExpression as String ) as booleanExpression
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. |
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.