parse-community / Parse-SDK-Flutter

The Dart/Flutter SDK for Parse Platform
https://parseplatform.org
Apache License 2.0
575 stars 194 forks source link

whereContainedIn issues #978

Closed Kora3 closed 11 months ago

Kora3 commented 11 months ago

New Issue Checklist

Issue Description

I use on parse_flutter_sdk

List data = ["test1", "test2"]

QueryBuilder query = QueryBuilder(ParseObject('Class')) ..whereContainedIn('field', data);

But not I have no result, but if I do: QueryBuilder query = QueryBuilder(ParseObject('Class')) ..whereEqualTo('field', data[0]); I got result, 'field' is an string type on DB.

I try with: QueryBuilder query = QueryBuilder(ParseObject('Class')) ..whereNotContainedIn('field', data); and I have the expected result, only whereContainedIn not working, with this, but is work when an try whit 'objectId'.

I would like to point out that this: const query = new Parse.Query('Class'); query.containedIn('field', data); work correctly on parse server cloud code, it's only with whereContainedIn on flutter_parse_sdk that it doesn't work.

Steps to reproduce

Try whereContainedIn with another string field that objectId.

Actual Outcome

Expected Outcome

Environment

Parse Flutter SDK

Server

Logs

parse-github-assistant[bot] commented 11 months ago

Thanks for opening this issue!

mbfakourii commented 11 months ago

Duplicate issues related to #980