-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mocking was a feature added to Apollo Server way back in the v1 days. Its implementation was in the `graphql-tools` package, which at the time was essentially part of Apollo Server but is now a separately maintained project; the code now lives in `@graphql-tools/mock`. The mocking API has changed over the years: they've added a lot of new options that aren't accessible via Apollo Server's configuration, and the API we do expose doesn't exactly match their docs (eg, mockEntireSchema vs preserveResolvers). Our philosophy these days is that Apollo Server doesn't need to bake in hard-coded dependencies on specific versions of third-party packages when it's just as easy for our users to use those packages directly. So we're removing the `mock` and `mockEntireSchema` options from AS4. We'll continue to document how to use these features by using `@graphql-tools/mock` directly, but also encourage folks to read their docs for more details. Fixes #6063.
- Loading branch information
Showing
6 changed files
with
15 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters