How to make a nested query in Realm?

前端 未结 1 1334
执笔经年
执笔经年 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 contacts = realm.where(ChatRealm.class).equalTo("users.id", "some id").findAll();
    

    0 讨论(0)
提交回复
热议问题