How to make a nested query in Realm?

前端 未结 1 1335
执笔经年
执笔经年 2021-02-07 14:10

I have two realms:

public class ChatRealm extends RealmObject {
    private String id;
    private RealmList users;
}

public class UserRealm ex         


        
相关标签:
1条回答
  • 2021-02-07 14:45

    How about link query in documentation? There is an example:

    RealmResults<ChatRealm> contacts = realm.where(ChatRealm.class).equalTo("users.id", "some id").findAll();
    
    0 讨论(0)
提交回复
热议问题