You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for your great work on breeze-odata4.
When we migrated our code from odata3 to odata4, we found a small issue. The query below returns different response with odata4.
const query = new breeze.EntityQuery('ProductDetails')
.select('Product/Categories')
.expand('Product/Categories') .take(1)
With Odata3, the uri generated will be ProductDetails?$expand=Product/Categories&$select=Product/Categories&$top=1
and the response only has data properties on Category.
However with Odata4, the uri generated will be ProductDetails?$expand=Product($select=Categories;$expand=Categories)&$top=1
and the response has extra data properties on ProductDetail and Product , not just on Category.
Our workaround is to add top navigation properties to queryOptions.select, like this, and it seems to work fine.
hi @tschettler
First of all, thanks for your great work on breeze-odata4.
When we migrated our code from odata3 to odata4, we found a small issue. The query below returns different response with odata4.
With Odata3, the uri generated will be
ProductDetails?$expand=Product/Categories&$select=Product/Categories&$top=1
and the response only has data properties on Category.
However with Odata4, the uri generated will be
ProductDetails?$expand=Product($select=Categories;$expand=Categories)&$top=1
and the response has extra data properties on ProductDetail and Product , not just on Category.
Our workaround is to add top navigation properties to queryOptions.select, like this, and it seems to work fine.
Would you pls help to address this issue here , thanks in advance.
The text was updated successfully, but these errors were encountered: