Sorry if you have already discussed this before and I've missed it in the
conversations but I'm wondering about this:
> A Query object will set the current page, number of results perPage, and
a where property.
Is the 'where' property something intended to be sent to the server?



On 16 January 2013 23:38, Kris Borchers <notifications@github.com> wrote:

> In docs/specs/aerogear-client-paging.markdown:
>
> > +At a high level, Paging and Querying is supported though the Pipe.readWithFilter(Query, Callback) method.  A Query object will set the current page, number of results perPage, and a where property.  The Pipe implementation will be responsible for processing a request along with any paging data and sending the appropriate headers, data, and query parameters to the server.  Once the response has been received, the Pipe implementation will provide a List of objects to the supplied callback.  If this call used paging, the List will be an instance of PagedList.
> > +
> > +PagedList will be a List<T> of results for the request, but also have methods for retrieving the next list.
> > +
> > +***
> > +
> > +### The Query Class
> > +
> > +Query is a value object to store general filter information about a request.  It has a convenience method to generate a query.
> > +
> > +#### Properties
> > +*offset*:int the requested page index
> > +
> > +*limit*:int the maximum number of results the server should return
> > +
> > +*where*:Dictionary a Dictionary representing the where clause.  In general this will be a collection of key/value pairs; however, nested queries CAN be supported.
>
> I'm still not crazy about this where property. I don't see the need.
> Filtering is separate from paging and in the end, offset and limit are just
> tacked onto the same collection as the where clause to be sent to the
> server as query string parameters so it just feels like an unnecessary
> level of grouping.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/aerogear/aerogear.org/pull/27/files#r2673917>.
>
>