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

diffTypeNodes return type causing problems with graphql15 #1585

Merged
merged 4 commits into from
Mar 14, 2022

Conversation

clenfest
Copy link
Contributor

Fixes #1538

Change return type on diffTypeNodes so that the Kind is explicit rather than implicit. I tested this by running the following super advanced program:

import { defaultRootOperationNameLookup, compositionHasErrors, isStringValueNode, findDirectivesOnNode } from '@apollo/federation';
console.log('hello');

It failed on the old version, but seems to work with the new version. I don't totally understand why the old version is failing, so another set of eyes would be helpful, especially if we think there could be other areas of the code where this might be an issue.

…m not sure I totally understand the underlying issue so I could use another set of eyes.
@clenfest clenfest changed the base branch from main to version-0.x March 11, 2022 11:37
@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 11, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@clenfest clenfest requested a review from trevor-scheer March 11, 2022 13:20
Copy link
Contributor

@benweatherman benweatherman left a comment

Choose a reason for hiding this comment

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

🐐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Federation library failing to compile with tsc
2 participants