I'm building an Android app with the Realm database.
I have a RealmObject
subclass called Article
which has an id
field (it's and int
and also a @PrimaryKey
). I would like to pass to a query a list of int
s (a Set
, int[]
, or whatever) of article id's and retrieve only those articles.
In SQL would be like this:
SELECT *
FROM `table`
where ID in (5263, 5625, 5628, 5621)
I've seen it's possible to do this in iOS in this StackOverflow question.
How can I do this in Android? Thanks!
Edit: Just to inform, I also asked this on the GitHub repo here.