Skip to content

Removes flattening of Errors inside of formatApolloErrors#1288

Merged
evans merged 2 commits into
version-2from
server-2.0/fix-nested-errors
Jul 2, 2018
Merged

Removes flattening of Errors inside of formatApolloErrors#1288
evans merged 2 commits into
version-2from
server-2.0/fix-nested-errors

Conversation

@evans

@evans evans commented Jul 2, 2018

Copy link
Copy Markdown
Contributor

In order to support errors thrown during GraphQL resolution that include nested errors, we need to keep the structure of the errors, rather than flattening them. The reason why the flattening code was present for mergeSchemas from graphql-tools, which returns a combinedError when ever an error is thrown from a remoteSchema.

@ghost ghost added the ⛲️ feature New addition or enhancement to existing solutions label Jul 2, 2018
@evans evans added this to the Release 2.0 milestone Jul 2, 2018
@evans evans merged commit 1947892 into version-2 Jul 2, 2018
@abernix abernix deleted the server-2.0/fix-nested-errors branch August 10, 2018 16:47
abernix added a commit that referenced this pull request Jul 23, 2019
It shouldn't be necessary to bring this entire `yup` dependency just to test
compatibility with the shape of a `yup` (https://npm.im/yup) error.

Ref: #1288
abernix added a commit that referenced this pull request Jul 23, 2019
It shouldn't be necessary to bring this entire `yup` dependency just to test
compatibility with the shape of a `yup` (https://npm.im/yup) error.

Ref: #1288
abernix added a commit that referenced this pull request Jul 23, 2019
It shouldn't be necessary to bring this entire `yup` dependency just to test
compatibility with the shape of a `yup` (https://npm.im/yup) error.

Ref: #1288
abernix added a commit that referenced this pull request Jul 23, 2019
It shouldn't be necessary to bring this entire `yup` dependency just to test
compatibility with the shape of a `yup` (https://npm.im/yup) error.

Ref: #1288
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

⛲️ feature New addition or enhancement to existing solutions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant