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

Serve up schema when Graphiql endpoint is running #93

Open
ndarilek opened this issue Nov 2, 2022 · 0 comments
Open

Serve up schema when Graphiql endpoint is running #93

ndarilek opened this issue Nov 2, 2022 · 0 comments

Comments

@ndarilek
Copy link

ndarilek commented Nov 2, 2022

Hey, really enjoying using this plugin. One thing I'd like to add locally during development is autocompletion/typechecking of GQL queries. There are VS Code extensions for this, but they require access to the schema. async_graphql lets you export it, but that'd be another thing I have to remember to do and commit whenever it changes.

It looks like the extension can retrieve the schema from a URL, however. If the plugin is configured to use graphiql, I wonder if it might also serve up the SDL with the correct content-type so the extension can be connected directly to the running app for the schema? I imagine it can probably just be rolled into the graphiql config since a) it's so low-overhead and b) anyone wanting one might also appreciate the other.

Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant