JetBrains / js-graphql-intellij-plugin

GraphQL language support for WebStorm, IntelliJ IDEA and other IDEs based on the IntelliJ Platform.
https://jimkyndemeyer.github.io/js-graphql-intellij-plugin/
MIT License
879 stars 97 forks source link

feature: Support retrieving schema as SDL, rather than via introspection #670

Open domdomegg opened 1 year ago

domdomegg commented 1 year ago

Some services provide the GraphQL schema as SDL directly (rather than as a response to an introspection query). It would be useful for this plugin to handle endpoints which expose this SDL. This is similar to how graphql-codegen has a handleAsSDL argument.

Apologies if this is a duplicate of an existing issue - had a look through other issues and the docs but couldn't find anything obvious.

BoD commented 1 year ago

Just a quick note to say that it's also possible to use introspection but save the result as an SDL doc (that's the approach that Apollo Kotlin followed).