-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Print GraphQL schema to file for better tooling integration #6167
Comments
I would also love to see this. Additionally such a schema file serves as a quick reference when debugging a Gatsby site that doesn't build any more (e.g while tinkering in gatsby-node). There might be additional benefits like creating a mock auto-generated GraphQL API, referring to the type definitions in discussions and documentation, etc. (Further down the line, we could speculate about inverting the reasoning by generating and migrating the Gatsby API based on a schema definition rather than building the schema based on some other config (similar to Prisma etc)?) |
Old issues will be closed after 30 days of inactivity. This issue has been quiet for 20 days and is being marked as stale. Reply here or add the label "not stale" to keep this issue open! |
This issue is being closed due to inactivity. Is this a mistake? Please re-open this issue or create a new issue. |
Summary
Once the schema is generated, it would nice for it to be printed to file in the root of the project (or in a
.schema
folder?). This would allow 3rd party tooling (like linters) to use the schema to improve DX for Gatsby projects.Motivation
Not only is it beneficial to 3rd party tooling, it's also step 1 in breaking out Gatsby's Eslint config to make it easier for developers to use Gatsby lint config in IDEs, on CI, etc
The text was updated successfully, but these errors were encountered: