API Reference

Navigating between pages

You can add pagination for your queries by sending the page and first parameter to your queries.

ParamDescriptionTypeDefault
pagePage numberint1
firstNumber of results to returnint50 (max: 250)
query {
  Customers(page: 5, first: 10) {
   	data {
      id
      label
    } 
  }
}

Ask for page information

There is a lot of information you can also ask about the current query.

ParamDescriptionType
countNumber of items in the current page.int
currentPageIndex of the current page.int
hasMorePagesAre there more pages after this one?bool
totalNumber of total available items.int
lastPageIndex of the last available page.int
perPageNumber of items per page.int
lastItemIndex of the last item in the current page.int
firstItemIndex of the first item in the current page.int
{
  Customers(page: 3, first: 5) {
    data {
      id
      label
    }
    paginatorInfo {
      count
      currentPage
      hasMorePages
      total
      lastPage
      perPage
      lastItem
      firstItem
    }
  }
}
{
  "data": {
    "Customers": {
      "data": [
        {
          "id": 100011,
          "label": "Yundt"
        },
        {
          "id": 100012,
          "label": "Collier"
        }
      ],
      "paginatorInfo": {
        "count": 2,
        "currentPage": 3,
        "hasMorePages": false,
        "total": 12,
        "lastPage": 3,
        "perPage": 5,
        "lastItem": 12,
        "firstItem": 11
      }
    }
  }
}