0

I get this error: "Unknown expression type to handle: EntitySetExpression" when trying to filter or order on an Odata navigation property.

    App.store.Person.include('Friend')
    .filter("it.age >= 10 && it.Friend.age >=10").toArray();

I get the same error if I include a navigation property in an order function:

App.store.Person.include('Friend').orderBy("it.Friend.age").toArray();

any idea as to why this shouldnt work? thanks

EDIT: My Question was a bit misleading! what I tried to to was filtering the navigation property itself in the same query. I was also wrong to think that JayData would return navigation properties as Queryable objects.

4

1 回答 1

1

我猜 Person 和 Friend 是 1-N 关系,因此对于过滤器,您需要 some() 或 every() 操作,请参阅:Using JayData to filter Header Detail Table - Inner Join SQL, oData

对于 orderby() 我还在寻找

于 2013-10-15T09:02:52.273 回答