diff --git a/lib/model-utils.js b/lib/model-utils.js index 5d97d03a7..0ecce2daf 100644 --- a/lib/model-utils.js +++ b/lib/model-utils.js @@ -88,6 +88,7 @@ const operators = { ilike: 'ILIKE', nilike: 'NOT ILIKE', regexp: 'REGEXP', + contains: '@>', }; /* @@ -449,6 +450,7 @@ ModelUtils._coerce = function(where, options, modelDef) { case 'inq': case 'nin': case 'between': + case 'contains': try { val = coerceArray(val); } catch (e) {