Pagination

The arguments “limit” and “bookmark” at the root object level are used for pagination. By default, all queries return a maximum of 25 results. To get the next page, submit the same query by adding the value of bookmark returned in the last set of result. When there are no more pages, the bookmark returned will be empty.

query {
    car (limit: 5, bookmark: "g1AAAACEeJzLYWBgYMpgSmHgKy5JLCrJTq"){
        Id
        make
        color
    }
}

Response:

{
    "data": {
        "car_count": 1,
        "car": [
            {
                "Id": "car1",
                "make": "ford",
                "color": "red"
            }
        ]
    }
}

The limit and bookmark arguments can be combined with other queries – like

query {
    car (where: {year: {_gt: 2010} },
        limit: 5, bookmark: "") {
        Id
        make
        color
    }
}

Last updated