Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant