js-graphql-intellij-plugin
js-graphql-intellij-plugin copied to clipboard
Specify `GET` in `.graphqlconfig`
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 hi! We had similar requests earlier but it's not implemented yet. I'll take a look!
This would be really useful for APIs that only allow GET requests, such as https://prismic.io/