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 request] Transform subscriptions into queries when executing from plugin #708

Open damianpetla opened 3 months ago

damianpetla commented 3 months ago

👋 If possible, it would be very useful to my team allowing to execute subscriptions like queries.

In my case our schema always come with same subscriptions and queries so for testing subscriptions I manually change them to query, run it and then switch back to subscription.

The way I imagine this to work, is detecting if there is a query available with the same name like subscription, update graphql file on the fly and try to run it. There would probably have to be some warning that it's dev responsibility at the end that it is not 100% safe.

Apologies if it's not the best place to ask for features. If there is better one I will happily report it there.