Description
It's been amazing working with graphql-compose-mongoose over the last few weeks and discovering how powerful it is. Thank you for this incredible tool!
I am starting to use the 'connection' resolver that is built in to grapqhl-compose-mongoose, (not the plugin available at graphql-compose-connection). It works as expected when I use the forward pagination arguments first
and after
.
But when I try to paginate in reverse using last
and before
I get some unexpected behavior.
Here's an example:
(last: 2, before: "")
r-0
r-1
r-2
r-3
r-4
r-5
r-6
r-7
r-8
r-9 <- result
r-10 <- result
I then try to get the next two pages.
(last: 2, before: "r-9")
r-0 <- actual result
r-1 <- actual result
r-2
r-3
r-4
r-5
r-6
r-7 <- expected result
r-8 <- expected result
r-9
r-10
Am I misunderstanding how this should work?
I saw this issue on the graphql-compose-connection docs.
graphql-compose/graphql-compose-connection#7
Is it possible that the fixes from this issue were not implemented in graphql-compose-mongoose?