Skip to content
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

whereContainedIn not work #980

Open
4 tasks done
Kora3 opened this issue Dec 5, 2023 · 1 comment
Open
4 tasks done

whereContainedIn not work #980

Kora3 opened this issue Dec 5, 2023 · 1 comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@Kora3
Copy link

Kora3 commented Dec 5, 2023

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 a 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 on flutter sdk, .. whereContainedIn on a field another that objectId

Actual Outcome

None

Expected Outcome

List of data

Environment

Parse Flutter SDK

  • SDK version: 7.0.0
  • Flutter version: 3.13.9
  • Dart version: 3.1.5
  • Operating system version: 0.0.0

Server

  • Parse Server version: 6.1.0

Logs

Copy link

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

This was referenced Dec 6, 2023
@mbfakourii mbfakourii added the type:bug Impaired feature or lacking behavior that is likely assumed label Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

2 participants