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 DisableIntrospection SchemaOpt #309

Merged
merged 1 commit into from
Feb 25, 2019
Merged

Add DisableIntrospection SchemaOpt #309

merged 1 commit into from
Feb 25, 2019

Conversation

stefanvanburen
Copy link
Contributor

Allows the server to disable schema introspection.

This basically just gates the __type, __typename, and __schema introspection schema behind a SchemaOpt. gqlgen recently implemented similar functionality (99designs/gqlgen#447), albeit also on a per-request basis. I think this functionality would be quite desired for running GraphQL servers in production.

Thoughts?

Allows the server to disable schema introspection.
@pavelnikolov pavelnikolov self-requested a review February 25, 2019 00:01
@pavelnikolov pavelnikolov self-assigned this Feb 25, 2019
@pavelnikolov pavelnikolov merged commit 3e8838d into graph-gophers:master Feb 25, 2019
@pavelnikolov
Copy link
Member

Thank you for your contribution!

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

Successfully merging this pull request may close these issues.

2 participants