2014-03-25 24 views
1

微風js分頁會在查詢擴展屬性時給出錯誤的實體數量,而不擴展它,可以正常使用.take和.skip。有人可以告訴我爲什麼是這樣,我能做些什麼才能正確地獲得前10名。Breeze js使用擴展屬性進行分頁

我的查詢:

var query = new breeze.EntityQuery().from('Student') 
          .where(profile.firstName', 'eq', 'Kate') 
          .skip(10) 
          .take(10) 
          .inlineCount() 
          .expand(['enrollments.batch, profile']); 

回答

1

你看起來擴大錯。我認爲這應該是

.expand(['enrollments.batch', 'profile']); // as an array with 2 elements 

.expand('enrollments.batch, profile'); // as a single ',' delimited string