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 authored 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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit acd1982

Please sign in to comment.