Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why cant we create postflight scripts? #518

Open
airtonix opened this issue Aug 11, 2023 · 0 comments
Open

Why cant we create postflight scripts? #518

airtonix opened this issue Aug 11, 2023 · 0 comments

Comments

@airtonix
Copy link

airtonix commented Aug 11, 2023

https://github.com/apollographql/docs/blob/main/src/content/graphos/explorer/connecting-authenticating.mdx

I especially want to store the token in environment from the response of my login mutation

But with the way you've done this, it means that I now have to create a script that:

  • makes the request to login
  • store the token from that js initiated request

then paste that INTO EVERY SINGLE OTHER OPERATION !!!!!


instead what I want is this :

  • open my login mutation operation
  • add to it's script a thing that responds to the response and store the token in the environment

then simply run my other operations without having to paste this in every single other operation in my collection

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

No branches or pull requests

1 participant