You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the GraphQL response does not contain the data entry then the server MUST reply with a 4xx or 5xx status code as appropriate.
The GraphQL specification indicates that the only situation in which the GraphQL response does not include the data entry is one in which the errors entry is populated.
Currently it seems as if there is no support / adoption of non-2xx HTTP response codes in graphql-js yet?
The text was updated successfully, but these errors were encountered:
I am not sure what you are expecting here, GraphQL-JS is purposefully independent of the HTTP spec. Implementations like GraphQL-HTTP, GraphQL-Yoga, ... would implement this, this is the reference implementation of the general GraphQL Specification
I am not sure what you are expecting here, GraphQL-JS is purposefully independent of the HTTP spec. Implementations like GraphQL-HTTP, GraphQL-Yoga, ... would implement this, this is the reference implementation of the general GraphQL Specification
This is somewhat a mix of feature request and discussion ....
one which I also kicked off in spring-projects/spring-graphql#1113 // spring-projects/spring-graphql#783
I was just wondering about your take and support of the upcoming 2.0 revision of the GraphQL over HTTP spec , especially in regards to status codes.
The appropriate section about the
application/graphql-response+json
response type (https://graphql.github.io/graphql-over-http/draft/#sec-application-graphql-response-json) states:Currently it seems as if there is no support / adoption of non-2xx HTTP response codes in graphql-js yet?
The text was updated successfully, but these errors were encountered: