Support for where in RealmList query
See original GitHub issueI couldn’t find the way to write a query like this
realm.where(Product.class).in(catId,"categories").findAll();
//Product categories
private RealmList<RealmInt> categories;
Am I missing something?
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
realm - How do I query RealmObject that have RealmList that ...
I have a RealmObject (let's say Owner ) and it has RealmList<Cat> . Cat has a property name . How do I query...
Read more >RealmQuery (Realm 7.0.0) - MongoDB
A RealmQuery encapsulates a query on a Realm or a RealmResults using the Builder pattern. The query is executed using either findAll() or...
Read more >RealmList<RealmString> is an anti-pattern! - Medium
EDIT: Any Realm version from 4.0.0-RC1 and above supports RealmList natively, ... Simply put, a link query takes more time than a query...
Read more >Realm Xamarin 0.74.1 - AWS
You can define a to-many relationship using RealmList properties. When you use these properties, you get back a RealmList which may be empty...
Read more >Realm Database on Android: Getting Started
Realm database; Schema and entities; Inserting objects; Querying and ... Note: Realm supports different types of fields. ... RealmList .
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just a quick note, ran into this issue when implementing the
in
predicate by @kneth in the second comment of this thread.Using it exactly as written, it threw:
UnsupportedOperationException: Missing left-hand side of OR
I had to account for the first condition before the OR in the loop, something like:
I know, trivial, but I figured I would comment just in case someone else ran into the same issue.
@Sadmansamee Please open a new issue or ask at Stackoverflow.