Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

jkimbo
Copy link
Member

@jkimbo jkimbo commented May 10, 2020

This PR modifies the logic that determines the HTTP status code to follow the v2 behaviour (see #36 (comment)). A HTTP 400 response should only be returned only when the errors are not specific to a particular part of the query (a validation error for example) otherwise a HTTP 200 response should be returned.

@jkimbo jkimbo requested review from Cito and KingDarBoja May 10, 2020 08:58
Copy link
Contributor

@KingDarBoja KingDarBoja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@KingDarBoja KingDarBoja added the type: bug An issue or pull request relating to a bug label May 10, 2020
@jkimbo jkimbo merged commit 6c13ef6 into master May 10, 2020
@jkimbo jkimbo deleted the return-200-errors branch May 10, 2020 18:46
@KingDarBoja KingDarBoja added this to the GraphQL-Server (V3) milestone Jul 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug An issue or pull request relating to a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants