@trenskow/pged 4.0.2 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/query-builder.js +3 -1
package/package.json
CHANGED
package/query-builder.js
CHANGED
|
@@ -280,7 +280,8 @@ module.exports = exports = class QueryBuilder extends CustomPromise {
|
|
|
280
280
|
$gte: '>=',
|
|
281
281
|
$regexp: '~*',
|
|
282
282
|
$jsonContains: '@>',
|
|
283
|
-
$jsonNotContains: '@>'
|
|
283
|
+
$jsonNotContains: '@>',
|
|
284
|
+
$jsonArrayContains: '?'
|
|
284
285
|
};
|
|
285
286
|
}
|
|
286
287
|
|
|
@@ -321,6 +322,7 @@ module.exports = exports = class QueryBuilder extends CustomPromise {
|
|
|
321
322
|
case '$regexp':
|
|
322
323
|
case '$jsonContains':
|
|
323
324
|
case '$jsonNotContains':
|
|
325
|
+
case 'jsonArrayContains':
|
|
324
326
|
return this._buildConditions(condition[key], operator, key, true);
|
|
325
327
|
default:
|
|
326
328
|
throw new TypeError(`Unknown modifier ${caseit(key)}.`);
|