Skip to content

whereArrayContainsAll function returns 107 error #255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
haoyaxin opened this issue Aug 15, 2019 · 0 comments
Closed

whereArrayContainsAll function returns 107 error #255

haoyaxin opened this issue Aug 15, 2019 · 0 comments

Comments

@haoyaxin
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants