graphql icon indicating copy to clipboard operation
graphql copied to clipboard

Support real cursor based paging

Open Andy2003 opened this issue 2 years ago • 5 comments

Currently the cursor based paging is converted to offset based paging at graphql-server-side.

A Cursor:

  • looks like YXJyYXljb25uZWN0aW9uOjE=
  • which decodes to arrayconnection:1
  • which results in offset 2 to be used for the query

This is not cursor-based paging because it does not take into account intermediate changes in data between two requests.

At least it should be stated in the documentation that no real cursors are used.

See also:

https://github.com/neo4j/neo4j/issues/12695#issuecomment-1182497250

Andy2003 avatar Jan 06 '23 12:01 Andy2003