altair-graphql / altair

✨⚡️ A feature-rich GraphQL Client for all platforms.
https://altairgraphql.dev
MIT License
5.13k stars 320 forks source link

Collection variables #1690

Open huehnerlady opened 3 years ago

huehnerlady commented 3 years ago

Is your feature request related to a problem? Please describe. At work we love Altair and would like to promote it to our clients. For that we plan to create a collection with queries and mutations to make the start even easier. For that we also want to use variables (eg. the URL), but unfortunately at the moment the variables are just specifiable in environments which you can not export together with the collection. Postman for example supports collection scoped variables and so these variables can be easily exported/imported together with the collection.

Describe the solution you'd like I would like to have some mechanism where I can add variables to a collection and then be able to export/import these together with the collection

imolorhe commented 3 years ago

Thanks for reporting this! I'd look into it as soon as I can.

SergioSuarezDev commented 3 years ago

Would be nice the same for pre & post request scripts. When i save a collection and restore it, lost this configs :(

huehnerlady commented 3 years ago

Would be nice the same for pre & post request scripts. When i save a collection and restore it, lost this configs :(

I love that idea, would actually see this as a separate thing as there we do not yet have even global scripts, which I miss too :)

imolorhe commented 3 years ago

One main challenge I have with all these is the organization of all these features and functionality in Altair. I'm still trying to figure out the best organizational strategy to use design-wise (I'm afraid my design capabilities have limits 😄), and not just for this feature but for all the other features.

I wish to be able to keep a clean interface (it's already busier than I would like) while supporting these many features.