Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update apollo-link-schema.md #6622

Merged
merged 1 commit into from
Jul 16, 2020
Merged

Conversation

stolinski
Copy link
Contributor

@apollo/client/link/schema does not work as described in the documentation where @apollo/link-schema does with Apollo Client v3. Even if @apollo/client/link/schema is the way forward, it's currently broken and anyone reading this rn will hit errors.

#6621

Checklist:

  • If this PR is a new feature, please reference an issue where a consensus about the design was reached (not necessary for small changes)
  • Make sure all of the significant new logic is covered by tests

@apollo/client/link/schema does not work as described in the documentation where `@apollo/link-schema` does with Apollo Client v3. Even if `@apollo/client/link/schema` is the way forward, it's currently broken and anyone reading this rn will hit errors.

apollographql#6621
Copy link
Member

@benjamn benjamn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to merge this until we fix the underlying problem. Thanks @stolinski!

@benjamn benjamn merged commit 218a2b4 into apollographql:master Jul 16, 2020
benjamn added a commit that referenced this pull request Jul 16, 2020
This prevents the @apollo/client/link/schema CommonJS bundle (which is
used by Node.js) from accidentally pulling in the entire dependency tree
of graphql/execution/execute.

This duplication not only increased the @apollo/client/link/schema CJS
bundle size from 1.31kB to a whopping 22.6kB, but also caused instanceof
to stop working reliably for types like GraphQLSchema, because there might
be more than one definition of that constructor in play, and instanceof is
sensitive to the exact constructor function you pass as the right-hand
argument.

Should fix #6621, allowing us to revert #6622. Thanks to @stolinsky for
surfacing this issue.
@benjamn benjamn added this to the Docs updates milestone Jul 16, 2020
benjamn added a commit that referenced this pull request Jul 16, 2020
This prevents the @apollo/client/link/schema CommonJS bundle (which is
used by Node.js) from accidentally pulling in the entire dependency tree
of graphql/execution/execute.

This duplication not only increased the @apollo/client/link/schema CJS
bundle size from 1.31kB to a whopping 22.6kB, but also caused instanceof
to stop working reliably for types like GraphQLSchema, because there might
be more than one definition of that constructor in play, and instanceof is
sensitive to the exact constructor function you pass as the right-hand
argument.

Should fix #6621, allowing us to revert #6622. Thanks to @stolinski for
surfacing this issue.
benjamn added a commit that referenced this pull request Jul 16, 2020
This reverts commit 218a2b4,
now that #6621 has been fixed by #6624.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants