Response composition

The response consists of the data you fetched, and a pageInfo node, which contains the cursors and booleans to indicate if there is a previous or next page to be fetched.

{
    "edges": [
        {
            // unique key in the entire collection
            "cursor": "7def2f1f-dc88-4750-bc78-85db949f2d65",

            // contains the actual result
            "node": {
                ...
            }
        }
    ],
    "pageInfo": {
        // string or null, will match the cursor of the first node in "edges". Can be used to retrieve the previous page
        "startCursor": "7def2f1f-dc88-4750-bc78-85db949f2d65",

        // string or null, will match the cursor of the last node in "edges". Can be used to retrieve the next page
        "endCursor": "77cd7e48-151b-4cd4-9637-783f67fe5d5c",

        // tells you wether or not there is a previous slice to be fetched
        "hasPreviousPage": false

        // tells you wether or not there is a next slice to be fetched
        "hasNextPage": true
    }
}

Last updated