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

Specify `GET` in `.graphqlconfig` #474

Open chris-sloan opened 3 years ago

chris-sloan commented 3 years ago

Is it possible to specify, in the .graphqlconfig file, that any query submission should be completed using GET and not POST?

I am a third party developer and the graphql server is only open to the web via GET. This means that in order to test my query, I need to rebuild and run my app, which becomes very time consuming.

Something like this perhaps

{
  "name": "Server",
  "schemaPath": "src/main/graphql/com/chris/services/graphql/schema.json",
  "extensions": {
    "endpoints": {
      "GraphQL Endpoint": {
        "url": "https://mygraphqlserverendpoint.com",
        "headers": {
          "Content-Type": "application/json",
          "Accept": "application/json",
        },
        "introspect": false,
        "method": "GET"
      }
    }
  }
}
vepanimas commented 3 years ago

@chris-sloan hi! We had similar requests earlier but it's not implemented yet. I'll take a look!

bummzack commented 2 years ago

This would be really useful for APIs that only allow GET requests, such as https://prismic.io/