@builder6/query-mongodb 0.13.5 → 0.13.8
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/dist/pipelines.js +2 -0
- package/package.json +2 -2
- package/src/pipelines.js +4 -0
package/dist/pipelines.js
CHANGED
|
@@ -419,6 +419,8 @@ var parseFilter = function parseFilter(element) {
|
|
|
419
419
|
return rval(constructRegex(_fieldName2, '^((?!' + element[2] + ').)*$', caseInsensitiveRegex), [element[0]]);
|
|
420
420
|
case 'equalsobjectid':
|
|
421
421
|
return rval(construct(_fieldName2, '$eq', new ObjectId(element[2])), [element[0]]);
|
|
422
|
+
case 'in':
|
|
423
|
+
return rval(construct(_fieldName2, '$in', element[2]), [element[0]]);
|
|
422
424
|
default:
|
|
423
425
|
return null;
|
|
424
426
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builder6/query-mongodb",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.8",
|
|
4
4
|
"description": "Querying a MongoDB collection using DevExtreme data store load parameters",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "2cd3b47d93f6fcd4cabd70ab959468fb1d3f1e28"
|
|
60
60
|
}
|
package/src/pipelines.js
CHANGED
|
@@ -460,6 +460,10 @@ const parseFilter = (element, contextOptions = {}) => {
|
|
|
460
460
|
construct(fieldName, '$eq', new ObjectId(element[2])),
|
|
461
461
|
[element[0]]
|
|
462
462
|
);
|
|
463
|
+
case 'in':
|
|
464
|
+
return rval(construct(fieldName, '$in', element[2]), [
|
|
465
|
+
element[0],
|
|
466
|
+
]);
|
|
463
467
|
default:
|
|
464
468
|
return null;
|
|
465
469
|
}
|