Skip to content

feat(Feat/error handling): Handled GraphQL errors according to the graphql error guide #41

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

Merged
merged 12 commits into from
Jul 8, 2025

Conversation

Ho-s
Copy link
Owner

@Ho-s Ho-s commented Jul 8, 2025

This PR implements error handling for GraphQL responses in compliance with the official GraphQL over HTTP specifications.
Specifically, the changes follow the recommendations and status code guidelines provided in the following resources:

Key updates include:

Proper usage of HTTP status codes (200, 400, 500, etc.) according to the type of GraphQL error.

Differentiation between transport-level errors and GraphQL execution errors.

Ensuring consistent response shape with appropriate errors and data fields.

These changes ensure our GraphQL API adheres more closely to industry standards and improves client-side error handling predictability.

@Ho-s Ho-s self-assigned this Jul 8, 2025
@Ho-s Ho-s merged commit 1a5c8f6 into main Jul 8, 2025
1 check passed
@Ho-s Ho-s deleted the feat/error-handling branch July 8, 2025 10:14
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

Successfully merging this pull request may close these issues.

1 participant