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

Remove dependency on graphql-js internal Maybe type #4230

Merged
merged 3 commits into from
Jun 11, 2020
Merged

Remove dependency on graphql-js internal Maybe type #4230

merged 3 commits into from
Jun 11, 2020

Conversation

haines
Copy link
Contributor

@haines haines commented Jun 10, 2020

Closes #4223

Per graphql/graphql-js#2621 (comment), Maybe is an internal type for graphql-js, which is why it isn't re-exported from index.d.ts. They moved it from tsutils to jsutils in v15.1.0 which breaks the deep import in apollo-federation.

This PR solves the issue by defining Maybe internally rather than importing it from graphql-js.

Copy link
Member

@abernix abernix left a comment

Choose a reason for hiding this comment

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

Thanks!

@abernix abernix merged commit d799e93 into apollographql:master Jun 11, 2020
@abernix abernix added this to the Release 2.14.4 milestone Jun 12, 2020
abernix added a commit to apollographql/federation that referenced this pull request Sep 4, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 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.

Maybe has been moved from graphql/tsutils to graphql/jsutils
2 participants