You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Methods for querying array values Query.containedIn() and Query.containsAll() don't work properly in JSDK, they fail with 101: bad $in value.
Steps to reproduce
Make a query like this:
let query = new Parse.Query("AnyClass");
query.containedIn('someArrayField', someValue);
query.find()
.then(() => console.log('The query was successfull'))
.catch(error => console.error('The query failed: ', error.message));
Expected /Actual Results
The query should return any object AnyClass containing someValue in its array field someArrayField but instead the request will fail with 400 (Bad Request) error returning Parse Error 101 with the message bad $in value.
Environment Setup
Server
parse-server version (Be specific! Don't say 'latest'.) : 2.7.1
Operating System: Win10
Hardware: i5 6200U, 6GB RAM
Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): Localhost
Database
MongoDB version: MongoDB Community Edition 4.0.1
Storage engine: -
Hardware: i5 6200U, 6GB RAM
Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): Localhost
Issue Description
Methods for querying array values
Query.containedIn()
andQuery.containsAll()
don't work properly in JSDK, they fail with101
: bad $in value.Steps to reproduce
Make a query like this:
Expected /Actual Results
The query should return any object
AnyClass
containingsomeValue
in its array fieldsomeArrayField
but instead the request will fail with400 (Bad Request)
error returning Parse Error101
with the message bad $in value.Environment Setup
Server
Database
Logs/Trace
Server Log:
These are the request headers/params copied from Chrome console:
The text was updated successfully, but these errors were encountered: