js-graphql-intellij-plugin icon indicating copy to clipboard operation
js-graphql-intellij-plugin copied to clipboard

Specify `GET` in `.graphqlconfig`

Open chris-sloan opened this issue 3 years ago • 2 comments

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"
      }
    }
  }
}

chris-sloan avatar Jul 12 '21 11:07 chris-sloan

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

vepanimas avatar Jul 19 '21 22:07 vepanimas

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

bummzack avatar Nov 08 '21 16:11 bummzack