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

Print GraphQL schema to file for better tooling integration #6167

Closed
kkemple opened this issue Jun 26, 2018 · 3 comments
Closed

Print GraphQL schema to file for better tooling integration #6167

kkemple opened this issue Jun 26, 2018 · 3 comments
Labels
stale? Issue that may be closed soon due to the original author not responding any more.

Comments

@kkemple
Copy link
Contributor

kkemple commented Jun 26, 2018

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

@kkemple kkemple added type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change 🏷 type: feature and removed type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change labels Jun 26, 2018
@sedubois
Copy link
Contributor

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)?)

@gatsbot
Copy link

gatsbot bot commented Jan 5, 2019

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!

@gatsbot gatsbot bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Jan 5, 2019
@gatsbot
Copy link

gatsbot bot commented Jan 17, 2019

This issue is being closed due to inactivity. Is this a mistake? Please re-open this issue or create a new issue.

@gatsbot gatsbot bot closed this as completed Jan 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale? Issue that may be closed soon due to the original author not responding any more.
Projects
None yet
Development

No branches or pull requests

2 participants