0

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?

  • Random access is not possible I guess there are 4 options only after , before , first and last. I can't see offset option. – adarsh Mar 20 '23 at 08:50

0 Answers0