We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 572580e commit 67bff07Copy full SHA for 67bff07
lib/mongoHandler.js
@@ -58,6 +58,10 @@ MongoStore.prototype._getSearchCriteria = function(request) {
58
if (!attributeConfig) return partialCriteria;
59
60
var values = request.params.filter[attribute];
61
+ if (attributeConfig._settings) {
62
+ attribute += ".id";
63
+ }
64
+
65
if (!(values instanceof Array)) values = [ values ];
66
values = values.map(function(value) {
67
if (value[0] === "<") return { $lt: value.substring(1) };
@@ -71,10 +75,6 @@ MongoStore.prototype._getSearchCriteria = function(request) {
71
75
return tmp;
72
76
});
73
77
74
- if (attributeConfig._settings) {
- attribute += ".id";
- }
-
78
partialCriteria[attribute] = values;
79
return partialCriteria;
80
}, { });
0 commit comments