title: Breeze JS: Is there a way to query entities from data.results?
body: <p>I have a Breeze web api controller, with methods that accept parameters and do some work, filtering, sorting, etc, on the server. 
  On the querySucceeded, I'd like to do further querying to data.results. Is there a way to accomplish this? I got this working by exporting/importing data.results to a local manager, and do the projection from there. The projection is needed in order to use the observable collection in a vendor grid control.</p>
  
  <pre><code>        var query = datacontext.EntityQuery.from("GetActiveCustomers")
              .withParameters({ organizationID: "1" })
              .toType("Customer")
              .expand("Organization")
              .orderBy('name');
  
          var queryProjection = query
                  .select("customerID, organizationID, name, isActive, organization.name");
  
          return manager.executeQuery(query)
              .then(querySucceeded)
              .fail(queryFailed);
  
          function querySucceeded(data) {
              var exportData = manager.exportEntities(data.results);
              var localManager = breeze.EntityManager.importEntities(exportData);
              var resultProjection = localManager.executeQueryLocally(queryProjection); 
      //This is the way I came up with to query data.results (exporting/importing the result entities to a local manager)
      //Is there a better way to do this? Querying directly data.results. Example: data.results.where(...).select("customerID, organizationID...)
  
              if (collectionObservable) {
                  collectionObservable(resultProjection);
              }
              log('Retrieved Data from remote data source',
                  data, true);
  
          }
  </code></pre>