title: Querying for an object in a list in Realm
body: <p>I'm using Realm 2.0 (Swift). My model is composed of <code>X</code> and <code>Y</code> (classes). <code>X</code> has a property called <code>list</code> which is a Realm List of <code>Y</code> objects. </p>
  
  <p>Let's assume I have an instance of a <code>Y</code> object, called <code>y</code>
  The query I'm looking for is:</p>
  
  <ul>
  <li>What X items contains an object equal to <code>y</code> in it's list of <code>Y</code> objects?</li>
  </ul>
  
  <p>If the list was just a list of strings, I assume this would be trivial as the query would be: <code>realm.objects(X.self).filter("&lt;string&gt; IN list")</code></p>
  
  <p>Thanks :-)</p>