-
Notifications
You must be signed in to change notification settings - Fork 66
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
feat: trace preview on schema errors #1202
Conversation
Wanted to do some testing on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
src/runtime/schema/schema.ts
Outdated
/** | ||
* Validate the GraphQL schema | ||
*/ | ||
GraphQL.validate(schema, GraphQL.parse(GraphQL.introspectionQuery)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm frankly not sure about this line that I've just added. What I've realized is that we have some cases , such as a type without any field, that aren't caught as a bug. However, when running the server, the playground sends an introspection query, which ends up throwing an unexpected error a couple of seconds later. This line here, tries to validate the schema against an introspection query to validate this class of error. WDYT?
Description
Preview
GraphQL:
schema.*:
TODO