Nested matching works for array fields

pull/2/head
Louis Chatriot 12 years ago
parent 27352bc410
commit 9713880d0f
  1. 2
      lib/model.js

@ -348,7 +348,7 @@ function matchQueryKey (obj, query, queryKey) {
// Normal field matching // Normal field matching
if (util.isArray(objValue)) { if (util.isArray(objValue)) {
for (i = 0; i < objValue.length; i += 1) { for (i = 0; i < objValue.length; i += 1) {
if (matcherFunctions.$eq(objValue[i], queryValue)) { return true; } if (matcher(objValue[i], queryValue)) { return true; }
} }
return false; return false;
} else { } else {

Loading…
Cancel
Save