reactjs – How to get page number using Github GraphQL API?

Recently I was given a test task to implement a repository list with pagination using React and Github GraphQL API. It was required to allow to skip pages (e.g. going from page №1 to page №5).

I am struggling to do so, because as far as I know Github GraphQL API uses cursor-based pagination that doesn’t support random page access. I tried to find a way to get page number in Github GraphQL API, but failed.

The question is, is it really impossible to implement such requirement or am I missing something?

Read more here: Source link