-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert GraphQL SDL to AST before passing to Apollo (#1341)
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
- Loading branch information
1 parent
c2dc6eb
commit de9e709
Showing
3 changed files
with
18 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "releases": [{ "name": "@keystone-alpha/keystone", "type": "patch" }], "dependents": [] } |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Convert GraphQL SDL to AST before passing to Apollo | ||
|
||
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 https://github.com/keystonejs/keystone-5/issues/1340 |
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