title: Nested query/Navigation Property collection
body: <p>Assume the following models: (example taken from Breeze DocCode)</p>
  
  <pre><code>public class Customer {
  
      public Guid CustomerID { get; internal set; }
      public ICollection&lt;Order&gt; Orders { get; set; }
  }
  
  public class SomeDetail{
      public string name{ get; set; }
  }
  
  public class Order {
  
      public int OrderID {get; set;}
      public Guid? CustomerID {get; set;}
  
      public SomeDetail detail {get; set;}
  }
  </code></pre>
  
  <p>Nested queries against single Navigation Properties are clear to me. How could this be done if the Navigation Property is a collection? Something like this:</p>
  
  <pre><code>var query = EntityQuery.from("Customers")
                   .where("Orders.detail.name", "==", someName);
  </code></pre>
  
  <p>As "Text":
  Select all Customers where the name of the detail of any order this customer has equals someCondition?</p>
  
  <p>I am running into errors here because </p>
  
  <pre><code>.where("Orders.detail.name, "=", someCondition)
  </code></pre>
  
  <p>is not possible due to the collection. 
  Is there a short way to check for this conditions without building up a number off collections and filtering per hand?</p>
  
  <p>Any help much appreciated here. </p>