lib/query.utils.js
function _handleMultiValuedParameters(knexBuilder, attrName, parameter) {
  if (parameter instanceof Set) {
    knexBuilder = knexBuilder.whereIn(attrName, Array.from(parameter));
  } else if (Array.isArray(parameter)) {
    knexBuilder = knexBuilder.whereIn(attrName, parameter);
  } else {
    knexBuilder = knexBuilder.where(attrName, parameter);
  }

  return knexBuilder;
}
function _handleMultiValuedParameters(knexBuilder, attrName, parameter) {
  if (parameter instanceof Set) {
    knexBuilder = knexBuilder.whereIn(attrName, Array.from(parameter));
  } else if (Array.isArray(parameter)) {
    knexBuilder = knexBuilder.whereIn(attrName, parameter);
  } else {
    knexBuilder = knexBuilder.where(attrName, parameter);
  }

  return knexBuilder;
}
Use this to add an equation clause for the value which is either an object or an array
@param {Object} knexBuilder
@param {Object} attrName
@param {Object} parameter
@returns {Object} knexBuilder with added parameter