title: Querying for a matching array property in Realm
body: <p>Consider the following, using Realm Swift:</p>
  
  <pre><code>class Shelf : Object {
      let products = List&lt;Product&gt;()
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>class Product : Object {
      let string: String = ""
      let Shelves = LinkingObjects(fromType: Shelf.self, property: "products")
  }
  </code></pre>
  
  <p>Now the question is, is it possible to perform a query like:</p>
  
  <p>"What are all the shelves that match EXACTLY a specific product list?" (no more, no less).</p>
  
  <p>I could not find a way to compare an array.</p>
  
  <p>EDIT: 
  If I try doing this:</p>
  
  <pre><code>let results = realm.objects(Shelf.self).filter("%@ == products",products)
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>Invalid predicate: 
  Key paths that include an array property must use aggregate operations
  </code></pre>
  
  <p>Thank you.</p>