Fixes issue affecting queries on Pointer arrays (#3721)

* Transform array atoms on equality

* nits
This commit is contained in:
Florent Vilmart
2017-04-16 11:44:41 -04:00
committed by GitHub
parent 907b160fc7
commit fd375cb927
2 changed files with 32 additions and 1 deletions

View File

@@ -232,7 +232,7 @@ function transformQueryKeyValue(className, key, value, schema) {
}
if (expectedTypeIsArray && !(value instanceof Array)) {
return {key, value: { '$all' : [value] }};
return {key, value: { '$all' : [transformInteriorAtom(value)] }};
}
// Handle atomic values