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.
2 parents 87afc0b + dc82308 commit ab915aaCopy full SHA for ab915aa
lib/mongoHandler.js
@@ -81,7 +81,7 @@ MongoStore.prototype._getSearchCriteria = function(request) {
81
var values = filter[attribute].map(MongoStore._filterElementToMongoExpr);
82
var attributeConfig = self.resourceConfig.attributes[attribute];
83
// Relationships need to be queried via .id
84
- if (attributeConfig._settings) {
+ if (attributeConfig && attributeConfig._settings) {
85
attribute += ".id";
86
}
87
values = values.reduce(function(mongoExpressions, mongoExpr) {
0 commit comments