Closed
Description
Line 174 in 459d5eb
Case:
The GraphQL API that I need to make requests to, responds with some other useful information, except of data
block:
{
"data": {...},
"extensions": {
"pageInfo": {
"limitPage": 200,
"totalCount": 23306516,
"hasNextPage": true,
"lastId": 41922710
}
}
}
But, as gql transport composes ExecutionResult
from data
and errors
blocks only, I'm not able to get and use the extensions
part in my code.
I was hoping to use hasNextPage
and lastId
values to iterate through pages of data, to load all the data to database.
Question:
Is there any way to get extensions
part of response, along with data
and errors
, using gql?