No matter how hard I try, I can't find a decent explanation on how one can implement a cursors-based pagination using neo4j-graphql-js running in Apollo Server.
I'm referring to the method described here.
How should I modify my typeDefs in order to be able to do this? I can't wrap my head around it.
By the way, my offset-based pagination works just fine.
Thanks, @MuddyBootsCode.
I've actually seen this video before but stopped watching relatively early as I understood neo4j-graphql-js wasn't providing the building blocks necessary to implement cursor-based pagination such as edges, nodes, cursor attributes that somehow are available to all those who make demos for it out of the box. I read somewhere that edges, nodes and cursor were Relay things and with my setup Apollo + neo4j-graphql-js it's just not there.
Or is it something I need to implement myself? I can't figure this out.
There's a video that I've seen and I'm sorry I just can't find it but it was from Apollo's big conference in Oct/Nov and it was showing how to implement pagination in a simple function. If you can start looking there you should run across it. Sorry to not be a ton of help.