Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide utilities to implement GraphQL Cursor Connections Specification #528

Open
aszenz opened this issue Nov 24, 2022 · 1 comment
Open

Comments

@aszenz
Copy link
Contributor

aszenz commented Nov 24, 2022

The GraphQL Cursor connections spec is supported by lot of clients to implement pagination, it is useful for the server to provide an api which adheres to this specification since it implements all of the best practices around pagination.

This library can help the developer by making it easy to implement this spec, this may involve providing some abstract classes or services

See the spec here: https://relay.dev/graphql/connections.htm

@oojacoboo
Copy link
Collaborator

This would be great. If anyone wants to take a stab at a PR, that'd be awesome.

@aszenz can we start by outlining some suggested design approaches to this? Should the controller, or an input type accept an interface implementation, and the input type parser can interpret this accordingly? If so, what does the parser need to do - anything - other than just type mapping it? I'm guessing the controller would just need access to the pagination information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants