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

Realm10 error: 'IN' must be a keypath to a list #3369

Closed
ghost opened this issue Oct 29, 2020 · 1 comment
Closed

Realm10 error: 'IN' must be a keypath to a list #3369

ghost opened this issue Oct 29, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 29, 2020

Fallowing the doc Link I want to use 'in' operator as filter for example:

let registers = realm.objects("users");
registers = registers.filtered('name in $0', ['Juan', 'Bryant'])

It throws this error:

Error: The expression following 'IN' must be a keypath to a list

What is happening? IN operator is not aviable yet?

Version of Realm and Tooling

  • Realm JS: 10.0.1
  • React Native: 0.63.3
@ironage
Copy link
Contributor

ironage commented Oct 29, 2020

We don't have support for using "in" where the right hand side is a user input argument list yet, it is currently only supported for property lists. We would like to add support for this case soon. See also #2781 for some workarounds.

@ghost ghost closed this as completed Oct 30, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant