tartiflette/tartiflette-aiohttp

GraphiQL custom header support

upcFrost opened this issue · 5 comments

Hi,

Upstream GraphiQL (https://github.com/graphql/graphiql/tree/main/packages/graphiql) seem to support setting custom headers (e.g. authorization) when the headerEditorEnabled option is set, it provides additional tab similar to "Query Variables".

Is it possible to add similar headers editor tab to the GraphiQL template used in tartiflette-aiohttp?

abusi commented

@upcFrost If I understand correctly, you want us to update our integration of graphiql to the latest upstream so you could use the graphiql_options to pass {"headerEditorEnabled": True} to it ?

yes

abusi commented

@upcFrost If you think you can do it, i'll gladly approve and release a new version. I may have some time to do it next week.

Ok, I'll try to, probably in the next few days