Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

[Question][Feature Request] - How To update varaibles inside of Studio from mutation response #1226

Open
ondrovic opened this issue Sep 1, 2021 · 1 comment

Comments

@ondrovic
Copy link

ondrovic commented Sep 1, 2021

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.

@cheapsteak
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants