Query With Ordering and Limit


Ordering can be set by providing an array of the fields we want to order with.

Query Variables

In the example above, we are ordering the results by amount_ASC. This mean we want to sort in ascending order on field amount_ASC. If we want to sort in descending order we can specify amount_DESC.

All the sort fields can viewed in GraphQL playground as well.


The number of data points returned by the query can be limited by setting the limit field as follows.

Query Variables