-
Notifications
You must be signed in to change notification settings - Fork 86
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
Support list comparison in RQL #755
Comments
@nielsenko Are there any workaround for this? |
What predicate are you trying to use? |
I've tried this |
@thipokch I just accidentally revisited this issue, and saw I didn't respond to your reply. I'm very sorry about this oversight. First, Yes string concatenation is the needed for now, but it is important that you do it on the query string itself, and not in the args, ie: final list = [1,2,3];
realm.query(id IN {${list.join(',')}}; not realm.query('id IN {$0}', [list]); // <-- won't work
realm.query('id IN {$0}', [list.join(',')]); // <-- won't work either |
Query list arguments are now supported in Realm SDK 1.4.0 |
As of realm-core v12.5.0 RQL supports list comparisons, but the Dart SDK does not handle list arguments. Example:
The text was updated successfully, but these errors were encountered: