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

Add endpoint to print the schema #13

Closed
andimarek opened this issue Nov 3, 2020 · 4 comments
Closed

Add endpoint to print the schema #13

andimarek opened this issue Nov 3, 2020 · 4 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@andimarek
Copy link
Contributor

It is often very helpful to have an endpoint which returns the whole Schema as printed SDL.

This is in some way similar to the build-in Introspection, but "made for humans" and also the SDL is more rich than Introspection as it can contain comments and directives.

@bclozel
Copy link
Member

bclozel commented Nov 4, 2020

Do you think this should be bound to the graphql endpoint itself directly?
Or should this be more like of a tooling-related, opt-in endpoint and maybe we should expose that as an actuator endpoint?

@andimarek
Copy link
Contributor Author

I am not sure about the differences here, but it should be opt in, yes.
The default path should be probably something like /graphql/schema and return text for a GET.

@bclozel
Copy link
Member

bclozel commented Nov 13, 2020

@andimarek I can't find the proper API to get the schema in a "pretty-printed" fashion. Could you point me to the API we should be using here?

@bclozel bclozel added the type: enhancement A general enhancement label Nov 13, 2020
@bclozel bclozel self-assigned this Nov 13, 2020
@andimarek
Copy link
Contributor Author

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

No branches or pull requests

2 participants