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

Convert GraphQL SDL to AST before passing to Apollo #1341

Merged
merged 1 commit into from
Jun 26, 2019

Conversation

jesstelford
Copy link
Contributor

Apollo released a breaking change in a semver-minor which causes it to
stop understanding the SDL (string) GraphQL typeDefs we were passing it.
This fix ensures we're converting to an AST to avoid the error being
thrown.

See apollographql/apollo-server#2921

Fixes #1340

@changeset-bot
Copy link

changeset-bot bot commented Jun 26, 2019

🦋 Changeset is good to go

Latest commit: 094f271

We got this.

Not sure what this means? Click here to learn what changesets are.

Apollo released a breaking change in a semver-minor which causes it to
stop understanding the SDL (string) GraphQL typeDefs we were passing it.
This fix ensures we're converting to an AST to avoid the error being
thrown.

See apollographql/apollo-server#2921

Fixes #1340
@abernix
Copy link

abernix commented Jun 26, 2019

Sorry! It wasn't intended to be a breaking change, and we still plan on supporting typeDefs provided as strings, even if that's historically an artifact of a pattern introduced by graphql-tools. It is, however, a bug due to incorrect TypeScript typings which were trusted during the introducing of a new piece of code. It'll be fixed in 2.6.7! 😄

@jesstelford
Copy link
Contributor Author

Not to worry - these things happen! Thanks for getting the fix into Apollo core so quick 👍

I'll still push this release for Keystone 5 through just in case.

@jesstelford jesstelford merged commit de9e709 into master Jun 26, 2019
@jesstelford jesstelford deleted the fix-apollo-bug branch June 26, 2019 11:54
@jesstelford
Copy link
Contributor Author

Fix released in @keystone-alpha/keystone@7.0.1

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.

Creating a new Apollo Server throws an error
2 participants