MarkLogic Server 11.0 Product Documentation
op.multiply

op.multiply(
   numericExpression as String,
   numericExpression as String
) as numericExpression

Summary

This function multiplies the left numericExpression by the right numericExpression and returns the value.

Parameters
numericExpression The left numeric expression.
numericExpression The right numeric expression.

Example

const op = require('/MarkLogic/optic');
const employees = op.fromView('main', 'employees');

employees.select(["FirstName", "LastName", "Position", "EmployeeID",
                   op.as("multiplied", op.multiply(op.col("EmployeeID"), 2))])
.result();
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy