这是indexloc提供的服务,不要输入任何密码
Skip to content

Status codes for non-fatal properties #1368

@phated

Description

@phated

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?

Metadata

Metadata

Assignees

Labels

c/serverRelated to server

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions