Graphiql: add support to sending extensions

Created on 11 Mar 2017  路  2Comments  路  Source: graphql/graphiql

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.

Most helpful comment

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.

All 2 comments

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.

@joelgriffith awesome, thanks for the help!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stubailo picture stubailo  路  3Comments

jonaskello picture jonaskello  路  4Comments

lukaszczapiga picture lukaszczapiga  路  5Comments

acao picture acao  路  3Comments

Nishchit14 picture Nishchit14  路  5Comments