-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Creating a new Apollo Server throws an error #1340
Comments
jesstelford
added a commit
that referenced
this issue
Jun 26, 2019
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
jesstelford
added a commit
that referenced
this issue
Jun 26, 2019
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
jesstelford
added a commit
that referenced
this issue
Jun 26, 2019
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
Merged
Fix released in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like this bug is from Apollo: apollographql/apollo-server#2921
We're returning strings here:
https://github.com/keystonejs/keystone-5/blob/5e56bc4d4754ca4242b8f1d4cb6b819873a3254e/packages/keystone/lib/Keystone/index.js#L152
Perhaps we should wrap them in
gql
calls where it's passed to Apollo here: https://github.com/keystonejs/keystone-5/blob/master/packages/app-graphql/lib/apolloServer.js#L149The text was updated successfully, but these errors were encountered: