New operator and extended dot operator subdocument search

pull/2/head
Leandro Ferrari Thomaz 11 years ago
parent 6e41c82dfd
commit f39ae3a118
  1. 1
      lib/model.js

@ -669,7 +669,6 @@ function matchQueryPart (obj, queryKey, queryValue) {
// Check if the object value is an array
if (util.isArray(objValue)) {
// Check if it's a query operator array
// TODO REFACTOR!!! keys[0]!!!
if (queryValue !== null && typeof queryValue === 'object' && !util.isRegExp(queryValue)) {
keys = Object.keys(queryValue);
firstChars = _.map(keys, function (item) { return item[0]; });

Loading…
Cancel
Save