js-graphql-intellij-plugin
js-graphql-intellij-plugin copied to clipboard
Feature request: Add response handlers
Thank you for the amazing plugin which really saves me a lot of time working on graphql backends.
There is one thing I would really like to see in this plugin which is already implemented in the PHPSTORM rest client.
The rest client allows you to add JS code as response handler like the example below:
### Authorization by token, part 1. Retrieve and save token.
POST https://httpbin.org/post
Content-Type: application/json
{
"token": "my-secret-token"
}
> {% client.global.set("auth_token", response.body.json.token); %}
This feature would be really nice in order to run queries with dynamic data Right now I have to pick the auth token and place it into the .env file to test queries that require authorization
pump