Solved

Backwards Pagination not supported

  • 18 July 2023
  • 3 replies
  • 55 views

Since the backwards pagination is not supported and hasPreviosPage will remain false always. 

We are displaying page numbers and clicking on a number will fetch respective data. This is working fine when moving forward (next)

We need solution for moving backwards in sequence or jumping to a certain page. Please suggest...

 

icon

Best answer by Jason Dressel 18 July 2023, 18:59

View original

3 replies

Userlevel 4
Badge

@Mohammad Imran,
Independent of support for previous in the graphQL response, could you keep a history of cursors in your client application?  This way, you can page or direct navigate using the historical cursors.

-Jason

@Jason Dressel

To create history, we need to navigate forward by each page and cache nextCursor which can be later used to go previous pages. So, to create this cache do we need to go page by page or is there any way to get list of cursors?

 

-Mohammad Imran

Userlevel 4
Badge

@Mohammad Imran,

Getting a list of cursors is not currently supported.  So, yes, you’d need to go forward and cache each in order to back.

-Jason
 

 

Reply