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
when I use the whereArrayContainsAll function in my project, the server returns the error: ParseException (Type: InvalidJson) : Code: 107 Message: bad $all value----
It looks like the function has a mistake of toString(), it turns the array value to string , so the server returns the bad value error.
Here is the code from network/parse_query.dart: /// Returns an object where the [String] column contains all void whereArrayContainsAll(String column, List<dynamic> value) { queries.add(_buildQueryWithColumnValueAndOperator( MapEntry<String, dynamic>(column, value.toString()), '\$all')); }
Maybe it should like this: (removed toString()) /// Returns an object where the [String] column contains all void whereArrayContainsAll(String column, List<dynamic> value) { queries.add(_buildQueryWithColumnValueAndOperator( MapEntry<String, dynamic>(column, value), '\$all')); }
I don't know whether it is right or not, hope for your help!
The text was updated successfully, but these errors were encountered:
when I use the whereArrayContainsAll function in my project, the server returns the error:
ParseException (Type: InvalidJson) : Code: 107 Message: bad $all value----
It looks like the function has a mistake of toString(), it turns the array value to string , so the server returns the bad value error.
Here is the code from network/parse_query.dart:
/// Returns an object where the [String] column contains all void whereArrayContainsAll(String column, List<dynamic> value) { queries.add(_buildQueryWithColumnValueAndOperator( MapEntry<String, dynamic>(column, value.toString()), '\$all')); }
Maybe it should like this: (removed toString())
/// Returns an object where the [String] column contains all void whereArrayContainsAll(String column, List<dynamic> value) { queries.add(_buildQueryWithColumnValueAndOperator( MapEntry<String, dynamic>(column, value), '\$all')); }
I don't know whether it is right or not, hope for your help!
The text was updated successfully, but these errors were encountered: