How can we improve Breeze.js?

Support $inlinecount in queries

The OData 2.0 spec describes the $inlinecount parameter ( as a way to include with query results the count of all records that satisfy the filter clause without respect to the paging parameters (top and skip) that may be in the query request.

36 votes
Sign in
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Ward Bell shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
completed  ·  AdminAdmin (Product Manager, Breeze.js) responded  · 

0.75.1 is now live, and adds an ’inlineCount" method to the EntityQuery.

This provides support for providing, in addition to standard query results, the count of records that would be returned by this query if no ‘skip’ or ‘take’ option were included on the query.

In other words, the count is calculated after applying any filters/where clauses but before any skip/take operations.

See the API Docs for more details. Both OData and WebApi endpoints are supported with this feature.


Sign in
Sign in with: facebook google
Signed in as (Sign out)
  • Ward Bell commented  ·   ·  Flag as inappropriate

    @Anonymous - I am intrigued by your suggestion but I'm not sure how it should work. When you are the author of the controller method, how would you specify and fill in the custom object? Would you expect to do so before or after the query had been processed?

  • Anonymous commented  ·   ·  Flag as inappropriate

    I would suggest ability to return additional Data with the IQueryable be implemented as well. Ability to return custom structure so that additional data can be returned in a custom structure, leaving it open to be customized by the consumer so if needed additional properties & data can be returned.

Feedback and Knowledge Base