You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The headers of all my queries/mutations are the same most of the time and Altair keeps one set per tab which is kinda frustrating when you start to add your entire query/mutation list on it.
Describe the solution you'd like
It would be good to be able to define one set of headers per environment or even one set of headers for the entire app if the first is too hard. The better solution is to keep both options (the current version and the new one) available and be able to switch between these behaviors.
The text was updated successfully, but these errors were encountered:
The solution I see involves a combination of the environments with the headers. So if you want to have a set of headers for all your requests, you add the headers to the Global environments.
{"headers": {"X-my-common": "1234567890"}}
Then Altair would include that as part of the headers while sending the requests.
The same rules for environment variables would apply. If you have headers set in a subenvironment, those would be combined with the headers in the Global environment. Obviously that would mean that the headers would need to be a simple key-value pair of primitives, any object would become [Object object].
I think this approach is better than setting the headers on every tab. It would be perfect if we could use the env variables to set the headers but it seems good enough as you proposed.
imolorhe
changed the title
Add option to use one set of headers per environment
Set base headers from environments
Mar 14, 2019
Is your feature request related to a problem? Please describe.
The headers of all my queries/mutations are the same most of the time and Altair keeps one set per tab which is kinda frustrating when you start to add your entire query/mutation list on it.
Describe the solution you'd like
It would be good to be able to define one set of headers per environment or even one set of headers for the entire app if the first is too hard. The better solution is to keep both options (the current version and the new one) available and be able to switch between these behaviors.
The text was updated successfully, but these errors were encountered: