Closed
Description
Thanks for the amazing library, first of all!
Please correct me if I am wrong, it seems that the algorithm for pageInfo.hasPreviousPage
and pageInfo.hasNextPage
fields are not following with the cursor connections spec.
graphql-compose-connection/src/connectionResolver.js
Lines 338 to 339 in 29269dd
With current implementation, in forward pagination situation with first/after
, pageInfo.hasPreviousPage
is always set to false
. And pageInfo.hasNextPage
always false
in backward pagination. In forward pagination, pageInfo.hasNextPage
is only working with first
and last
both set, which is discouraged.
I am wondering if this deviation from the spec is intentional or is it a potential bug?
Metadata
Metadata
Assignees
Labels
No labels