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 {
    document (limit:2, bookmark: "g1AAAABgeJzLYWBgYMpgSmHgKy5JLCrJTq2MT8lPzkzJBYpLMCTn
5") {
            assetID,
            color
            appraisedValue
        }
}

Response:

{
    "data": {
        "document_bookmark": " g1AAAABgeJzLYWBgYMpgSmHgKy5JLCrJTq2MT8lPzkzJBYpLMCTn5",
        "document_count": 2,
        "document": [
            {
                "appraisedValue": 100,
                "assetID": "asset1",
                "color": "blue"
            },
            {
                "appraisedValue": 100,
                "assetID": "asset2",
                "color": "red"
            }
        ]
    }
}

Last updated