Skip to content

Commit

Permalink
feat: deep merge resolvers (#11760)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell committed Apr 15, 2024
1 parent 2583488 commit acd1982
Show file tree
Hide file tree
Showing 6 changed files with 185 additions and 46 deletions.
5 changes: 5 additions & 0 deletions .changeset/cold-dancers-call.md
@@ -0,0 +1,5 @@
---
"@apollo/client": minor
---

`createTestSchema` now uses graphql-tools `mergeResolvers` to merge resolvers instead of a shallow merge.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -111,6 +111,7 @@
"@babel/parser": "7.24.1",
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.1",
"@graphql-tools/merge": "^9.0.3",
"@graphql-tools/schema": "10.0.3",
"@graphql-tools/utils": "10.0.13",
"@microsoft/api-extractor": "7.42.3",
Expand Down
Expand Up @@ -544,7 +544,8 @@ describe("failure path", () => {
);

it.each([
["error message", giveUpResponse],
// TODO(fixme): test flake on CI https://github.com/apollographql/apollo-client/issues/11782
// ["error message", giveUpResponse],
["error code", giveUpResponseWithCode],
] as const)(
"clears the cache when receiving NotSupported error (%s)",
Expand Down

0 comments on commit acd1982

Please sign in to comment.