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
880 stars 95 forks source link

Feature Request: add support custom http request headers for individual requests, similar to Apollo Playground #694

Open apartensky opened 1 year ago

apartensky commented 1 year ago

Feature Request Currently it is only possible to set request headers at the GQL Endpoint configuration.

I would like to set specific headers for each request file that i create, similar to how i can specify variables per request.

Also, it would be great if I could save the headers with the request, so that same headers are persisted even after WebStorm is restarted

Screenshot Appolo Playground has this feature. It will be very helpful if the plugin supports the same. image

Version and Environment Details Operation system: Windows 10.0 IDE name and version: WebStorm 2023.2.3 Build #WS-232.10072.28, built on October 11, 2023 Licensed to State Street Bank and Trust Company / Antony Partensky Subscription is active until March 5, 2024. Runtime version: 17.0.8.1+7-b1000.32 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

Non-Bundled Plugins: com.jetbrains.space (232.10072.29) com.atlassian.bitbucket.references (2022.1.242) com.intellij.lang.jsgraphql (4.0.2) Plugin Verison: 4.0.2

vepanimas commented 1 year ago

@apartensky Hi! Have you tried IntelliJ HTTP Client? Its team has made a lot of effort integrating GraphQL into the workflow. You should probably give it a try. Here is the link to docs https://www.jetbrains.com/help/idea/http-client-in-product-code-editor.html#graphql