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

[Feature request] Add introspection options for fetching GraphQL schemas. #5328

Open
MayCXC opened this issue Oct 25, 2022 · 0 comments
Open
Labels
A-graphql Area: GraphQL Protocol C-improvement Category: Improvement / Enhancement S-verified Status: Verified by maintainer

Comments

@MayCXC
Copy link

MayCXC commented Oct 25, 2022

The graphql spec has added several optional fields and arguments to introspection queries, which graphql-js supports with an options interface to include deprecated input fields, __Schema.description, __Directive.isRepeatable, __Type.specifiedByUrl, etc.. It is very useful for developing graphql servers to have these fields present in the schema documentation, especially deprecated input fields.

I have a fork that adds a switch for each of these options beneath the "Remote GraphQL schema" section in the graphql query settings pane, as well as addressing what I think is a bug where the schema documentation doesn't get updated when "Refresh schema" is clicked, here: #5329

Adding options for each of these rather than just using the most general possible query is useful because many existing graphql servers cannot resolve all of the spec's fields; I have a few graphql-java projects that can't validate queries which use __Directive.args with arguments, so disabling it is nice.

@MayCXC MayCXC changed the title Add introspection options for fetching GraphQL schemas. [Feature request] Add introspection options for fetching GraphQL schemas. Oct 25, 2022
@filfreire filfreire added C-improvement Category: Improvement / Enhancement S-verified Status: Verified by maintainer A-graphql Area: GraphQL Protocol labels Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-graphql Area: GraphQL Protocol C-improvement Category: Improvement / Enhancement S-verified Status: Verified by maintainer
Projects
None yet
Development

No branches or pull requests

2 participants