Replies: 1 comment 3 replies
-
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone.
I'm using Data API Builder to create a GraphQL endpoint and I noticed that the schema for a connection has an endCursor property, which indicates the cursor to use for moving forward in the pagination.
However, I'm not sure how to handle backward pagination, because it seems that the schema does not provide any information to move to a previous page.
As far as I know, HotChocolate supports two approaches:
Relay, on the other hand, uses a cursor approach but it allows both forward and backward pagination using an after and a before property, which contain the cursor value (see https://relay.dev/graphql/connections.htm#sec-Forward-pagination-arguments and https://relay.dev/graphql/connections.htm#sec-Backward-pagination-arguments).
Is there is any way to achieve this? Please, let me know if you need more informations.
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions