title: How to make a nested query in Realm?
body: <p>I have two realms:</p>
  
  <pre><code>public class ChatRealm extends RealmObject {
      private String id;
      private RealmList&lt;UserRealm&gt; users;
  }
  
  public class UserRealm extends RealmObject {
      private String id;
      private String username;
  }
  </code></pre>
  
  <p>I have an User id and I want to know which chats he is participating in. I have check the Realm documentation and couldn't find how to do this type of queries.</p>
  
  <p>How can I get the results I want using a Realm query?</p>