Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your query only asks for the root type, <code>DesignType</code>, so that is all that should be returned. I'll assume that your server side method is not returning the related <code>Product</code> and <code>Vision</code> entities (which it could do but I'm betting that you're not making that happen).</p> <p>So Breeze is doing what you asked.</p> <p>If the client wants the related entities, it can ask for them with an expand clause:</p> <pre><code>breeze.EntityQuery.from("Designs") .expand('Products, Vision') </code></pre> <p>Check out <a href="http://www.breezejs.com/documentation/query-examples#Eager%20loading%20%20EntityQuery.expand" rel="nofollow">the documentation on queries and expand</a></p> <h2>Update 11 Dec 2013</h2> <p>If I understand your comment, (a) you now understand why you don't see <code>Product</code> because you are neither requesting products on the client nor pushing them out from the server, (b) your web api is including the related <code>Vision</code> instance and (b) you are seeing <code>Vision</code> data in the JSON response from the query.</p> <p>The remaining mystery is why <code>someDesignType.Vision</code> is returning null.</p> <p>Please read <a href="http://www.breezejs.com/documentation/query-result-debugging" rel="nofollow">"Query response debugging"</a> focusing in particular on the reference navigation property and the foreign key property on <code>Product</code> that points back to the <code>DesignType</code>. If you're still mystified, please show us how the details of the <code>Vision</code> navigation property as explained there.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload