smallrye/smallrye-graphql

The field "data" should not be present in the GraphQL Response if a non-partial error occurs.

mskacelik opened this issue · 1 comments

Via https://spec.graphql.org/draft/#sec-Response-Format quote:

If the request included execution, the response map must contain an entry with key data. The value of this entry is described in the “Data” section. If the request failed before execution due to a syntax error, missing information, or validation error, this entry must not be present.

Yet SRGQL implementation returns the data field:
image

To fix the issue, there need to be changes both on the server side and also on the client side (typesafe).

I will look into it this week.