-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request #565
Comments
Thanks for your feature request! Please see #500 for most recent discussion around setting request headers. For visualizing response headers, are the Chrome dev tools sufficient for your needs? For "environment variables", I am not even sure what that means in the context of GraphiQL (it's just a React component), but the answer is likely the same: you can configure it with an arbitrary Closing this for now, but feel free to comment again if you have further questions/thoughts etc. |
@wincent We just want a easy way to test api! Why you ignore that? |
@AlexanderChen1989 I'm sorry if our responses felt like that, but I just want to make sure we're not ignoring your requests. In #500, I listed a couple of options that you can look into if you really wanted setting custom headers:
Hopefully those options fulfill your needs. @wincent has again made a great explanation as to why we wouldn't want the custom header feature in GraphiQL, so I'll avoid being repetitive here. About environmental variables, in which cases would you need to use env vars? What would you like to configure/customize, and how would the env variables help? If you're using our example code to fire up a GraphiQL instance to test your queries, then you should be able to alter the server code however you need to solve your use case. If you're embedding GraphiQL as a standalone React component, then there should be a far more freedom for you to do whatever/however you wanna do. Please let us know if we're misunderstanding something. |
@AlexanderChen1989 You can also checkout https://github.com/imolorhe/altair |
wouldn't it be great to be able to
The text was updated successfully, but these errors were encountered: