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

Use server-side pagination for GraphQL queries that return lists #779

Open
davidebriani opened this issue Dec 20, 2024 · 0 comments
Open
Labels
backend This issue is relative to the Edgehog Backend enhancement New feature or request frontend This issue is relative to the Edgehog Frontend
Milestone

Comments

@davidebriani
Copy link
Collaborator

All queries that return a possibly unbounded list of resources would be better served by API that support pagination.
This way API clients are free to request only a portion of the list at a time, without having to handle huge responses or put pressure on the server.

For instance, an initial attempt to convert the existing GraphQL queries to be paginated was started in #542 which can be used as a reference for the backend work.

Ideally, the work can be split into several steps / PRs, so that both the backend and the frontend are updated at the same time: otherwise the API change would leave the frontend broken.

@davidebriani davidebriani added enhancement New feature or request frontend This issue is relative to the Edgehog Frontend backend This issue is relative to the Edgehog Backend labels Dec 20, 2024
@davidebriani davidebriani added this to the v0.10 milestone Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend This issue is relative to the Edgehog Backend enhancement New feature or request frontend This issue is relative to the Edgehog Frontend
Projects
Status: No status
Development

No branches or pull requests

1 participant