diff --git a/lib/waterline/utils/query/private/normalize-constraint.js b/lib/waterline/utils/query/private/normalize-constraint.js index 218e36c1b..06bc6f044 100644 --- a/lib/waterline/utils/query/private/normalize-constraint.js +++ b/lib/waterline/utils/query/private/normalize-constraint.js @@ -44,6 +44,7 @@ var MODIFIER_KINDS = { 'in': true, 'like': true, + 'ilike': true, 'contains': true, 'startsWith': true, 'endsWith': true @@ -784,7 +785,7 @@ module.exports = function normalizeConstraint (constraintRhs, constraintTarget, // ╦ ╦╦╔═╔═╗ // ║ ║╠╩╗║╣ // ╩═╝╩╩ ╩╚═╝ - else if (modifierKind === 'like') { + else if (modifierKind === 'like' || modifierKind === 'ilike') { // If it matches a known attribute, verify that the attribute // does not declare itself `type: 'boolean'` or `type: 'number'`;