Pagination
interface GetReponse {
data: T[]
pageInfo: {
hasPreviousPage?: boolean
hasNextPage: boolean
startCursor?: string
endCursor: string
}
totalCount: number
}{
"users":[
{ "id": "1001", "name": "Einar"},
{ "id": "1002", "name": "Erlendur"},
{ "id": "1003", "name": "Valdimar"},
],
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": false,
"startCursor": "aWQ6MTAwMQ=="
"endCursor": "aWQ6MTAwMw==",
},
"totalCount": 25
}PageInfo
Pagination Query parameters
Monorepo library
Last updated
Was this helpful?