Replies: 2 comments 2 replies
-
Side note: in addition to |
Beta Was this translation helpful? Give feedback.
-
it may also be useful if a graphql response error was also more explicit about how null bubbling occurred. currently, if a child field raises an error and is non-null, the client can deduce that a parent nullable field was null because of the child error. This is information that could be made plainly available, either by optionally embedding the error in the data array, or by adding additional metadata to the response that includes the “consequences” of an error. gateways processing responses from subschemas may benefit from directly understanding that a null in a response was caused by an error. this can be deduced from a properly pathed child error and knowledge of the schema, but could be made plain within the response. |
Beta Was this translation helpful? Give feedback.
-
See #37, where I tried to distill a little bit how execution of a request against a composite schema is sometimes -- but not always -- accomplished by sending request(s) to the original subschemas.
In such a scenario, the original subschema may return an error.
It may be helpful to build into GraphQL Errors the ability to specify structured additional info, so that, for example, the original error with the path to the field in the subschema could also be optionally returned to the client. See: graphql/graphql-spec#893
Beta Was this translation helpful? Give feedback.
All reactions