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

Why cant we create postflight scripts? #518

Description

@airtonix

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions