title: Android Realm, query objects by child attribute
body: <p>I'm using <a href="https://realm.io/docs/java/latest/" rel="noreferrer"><code>Realm-Java</code></a> for an Android application.</p>
  
  <p>I need to query a list of <code>MyObject</code>, searching for the ones that contain a string in <code>MyObject.SubObject_A.ListOfString</code>.</p>
  
  <p>Since Realm doesn't support list of <code>String</code>, I'm now using this structure:</p>
  
  <pre><code>-MyObject
  ----SubObject_A
  --------Attribute_A
  --------Attribute_B
  --------RealmList&lt;RealmString&gt;
  ----SubObject_B
  ----OtherStuff
  </code></pre>
  
  <p>With <code>RealmString</code> being</p>
  
  <pre><code>public class RealmString extends RealmObject {
    public static final String VALUE = "value";
    private String value;
  }
  </code></pre>
  
  <p>How do I query for all <code>MyObject</code> that contain a given String inside <code>MyObject.SubObject_A.RealmList&lt;RealmString&gt;</code>?</p>