Repository navigation
Coercion error path. - #1195
Coercion error path.#1195
Conversation
|
I do not understand what this is trying to achieve. Please add a test that illustrates the effect of this change. |
|
We will implement nothing that breaks or extends the error format specified in the GraphQL specification, see https://spec.graphql.org/draft#sec-Errors. I think what you are trying to do will require an addition to |
|
That's fine, I'm just looking a way to inject this into exception - so it could be used by our custom formatter. Otherwise I should That's why the first sentence is |
That might be the easiest. Alternatively, I could see wrapping the |
|
Sounds perfect to me. I'm fine with either way. Just tell me what's preferred approach and I can start working on it. |
|
Let's go with |
5b495eb to
d655922
Compare
d655922 to
58fc6bc
Compare

I know that's not best place to put it, I'm looking for more elegant solution.
The idea is to have path of error in structured way, so we can format it to the frontend - and frontend can locate the error easier - otherwise frontend should parse strings to locate the error.