Fixes bug when querying equalTo on objectId and relation

- Adds $eq operator in transform
- Makes $eq operator on objectId when adding $in operator
This commit is contained in:
Florent Vilmart
2016-03-07 08:26:35 -05:00
parent 53e7337eee
commit 5cdcadea36
3 changed files with 52 additions and 6 deletions

View File

@@ -412,6 +412,7 @@ function transformConstraint(constraint, inArray) {
case '$gte':
case '$exists':
case '$ne':
case '$eq':
answer[key] = transformAtom(constraint[key], true,
{inArray: inArray});
break;