Skip to content
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

add support to sending extensions #375

Open
dh94 opened this issue Mar 11, 2017 · 2 comments
Open

add support to sending extensions #375

dh94 opened this issue Mar 11, 2017 · 2 comments

Comments

@dh94
Copy link

dh94 commented Mar 11, 2017

from my usage with graphql i found that sometimes i'd like to have additional data
sent apart from the graphql query/mutation.

this extra data can be either headers, or another json property in the request.
currently graphiql allows me only to send the graphql body,
and i can't add extra data like headers/ extra json fields.

I think it will be a great feature to be able to send these extra data parameters through graphiql.

@joelgriffith
Copy link

joelgriffith commented Mar 13, 2017

You can actually do this in user-land pretty easily since GraphiQL is exported as a React component. Not sure if you've seen this: https://github.com/graphql/graphiql#usage-examples, but the features you're looking to build can be done.

Also, there's this: http://toolbox.sangria-graphql.org/graphiql which does what you've described.

@dh94
Copy link
Author

dh94 commented Mar 13, 2017

@joelgriffith awesome, thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants