-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
c/serverRelated to serverRelated to server
Description
I just ran into an issue while using Apollo Client with Hasura. Since Hasura always returns a 400 status code when there's an error in the query, Apollo Client will always treat that error as a networkError and not pull the graphql errors out of the response.
Apollo client expects a query with non-fatal errors (it seems like that means if there's a query with optional fields that fail) to return as a 200 with the errors property instead of the data property.
Can the status codes be changed in Hasura to have full compatibility with Apollo Client?
pyankoff, revskill10 and DarkLite1
Metadata
Metadata
Assignees
Labels
c/serverRelated to serverRelated to server