apollo
apollo copied to clipboard
[Question][Feature Request] - How To update varaibles inside of Studio from mutation response
Is it possible to update environment variables with items from the result of a mutation?
Example would be you login and a token is generated in a response in the environmental variable tab you would have something like this
{
"token": "<token>"
}
Is there currently a way to update <token> with Response.data.login.token then pass it to the headers? Currently we he have to login and copy paste would be a nice feature if possible.
hi there, wonder if preflight scripts might scratch the same itch?
https://github.com/apollographql/apollo-studio-community/blob/main/preview-docs/PreRequestScripts.md
happy to add your org to the beta if you can share your org id