-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Realm Query for List #4990
Labels
Comments
realm.where(Product.class)
.equalTo("meta.key","content")
.findAll()
.where()
.equalTo("meta.value","chicken")
.findAll() |
@Zhuinden thanks , Awesome, will try this |
@pollux- You can also read this relevant section in the docs: https://realm.io/docs/java/latest/#link-queries |
Awesome, working as expected 👍
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a product Model Like this
Model is populated from below JSON.
What I need is, filter all products which have content="chicken". So I ended up in writing a query like this.
realm.where(Product.class).equalTo("meta.key","content").equalTo("meta.value","chicken").findAll().
But I ended up in result set with both the products. How can I do something like this say, I need only the products which has key="content" and value="chicken".
The text was updated successfully, but these errors were encountered: