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

Cannot interact with GraphQL toolbar #710

Open spartanhooah opened 2 months ago

spartanhooah commented 2 months ago

I have installed the plugin, and in the tool window, my types appear in the schema discovery summary. However, when I open the graphql file where my queries are defined, the only button that I can click on the toolbar is the "Open Configuration File" button. What step have I missed in setting things up? My code can be found here.

vepanimas commented 2 months ago

@spartanhooah hi! The disabled buttons you see are related to making queries and schema introspection from the remote URL. If you need this, you should specify a URL in the config. There are two ways to do this 1, 2.

That's a UX issue, maybe we need to hide those disabled buttons to prevent confusion.

spartanhooah commented 2 months ago

I think it's also a documentation issue. The section on the toolbar doesn't mention that it's only useful for remote URLs. It'd be great if we could make a query against a schema that's in the open file, kind of like the built-in HTTP client that exists in IntelliJ IDEA Ultimate.