Fixed querying objects with equal constraint on array columns.

This commit is contained in:
Nikita Lutsenko
2016-02-06 18:49:16 -08:00
parent 8d03c54daf
commit 4f05cfc562
2 changed files with 18 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ function transformKeyValue(schema, className, restKey, restValue, options) {
if (inArray && options.query && !(restValue instanceof Array)) {
return {
key: key, value: [restValue]
key: key, value: { '$all' : [restValue] }
};
}