title: BreezeJS Predicates on 2nd level expanded entities
body: <p>A similar question has been asked on this matter:
  <a href="https://stackoverflow.com/questions/20752972/breeze-work-around-for-multi-valued-property-queries">Breeze work-around for multi valued property queries</a></p>
  
  <p>Well, that works for one-one-many.
  i.e parent entity may have one child which in turn has many children.</p>
  
  <p>My scenario is : A product has many units, a particular unit has many barcodes.</p>
  
  <pre><code>var predicateBarcode = Predicate.create('units.barcodes','any','barcode', 'eq', searchText());
  
   var query = EntityQuery.from('Products')
               .expand('units.barcodes')
               // .take(10)
               .where(predicateBarcode );
              return manager.executeQuery(query)
                  .then(querySucceeded)
                  .fail(queryFailed);
  </code></pre>
  
  <p>Executing the Query gives an error:</p>
  
  <pre><code>The parent value for a property access of a property 'barcodes' is not a single value. Property access can only be applied to a single value.
  </code></pre>
  
  <p>I've changed the predicate to:</p>
  
  <pre><code>var predicateBarcode = Predicate.create('units','any','barcodes','any','barcode', 'eq', searchText());
  </code></pre>
  
  <p>which gives another error:</p>
  
  <pre><code>The Any/All nesting limit of '1' has been exceeded. 'MaxAnyAllExpressionDepth' can be configured on ODataQuerySettings or QueryableAttribute
  </code></pre>
  
  <p>Is there any way around this?
  Help is appreciated.</p>