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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user