-
Notifications
You must be signed in to change notification settings - Fork 839
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
Run pre-request scripts when auto-fetching GraphQL schema #10957
Comments
Tried to switch to Postman but this was a deal breaker. My team makes heavy use of GraphQL. Pre-request scripts are great and we need it for auth, otherwise config is duplicated everywhere (and so, Postman is now no better than our current client). As things stand, the GraphQL query editor is basically a plaintext editor. No schema and thus autocomplete is a huge blocker. |
Is there any chance this could be taken into consideration? |
Any movement on this? We are actively considering alternatives to Postman for the same reasons as @gnawf. |
GraphQL in postman now supports introspection. Can you help us understand your workflow where you want to run a script pre-introspection? |
This also makes it unusable for me. I get a token in a pre-request script, so now introspection doesn't work. (When I get the token and hard-code it in the Authorization header it works, but the tokens are short-lived and I don't want to get new one's manually.) |
waiting for this issue to resolved |
Same thing here. It would be able to use the pre-request script to set other headers too. |
Any idea when this might be implemented please? The ability to set an authentication token via pre-request script for introspection is, I would imagine, a standard requirement if this application is going to support graphql. |
Is there an existing request for this feature?
Is your feature request related to a problem?
Our API requires an extra header to be sent with all requests when an auth-header is sent. When an auth-header is set in the Postman collection, we also need to send that additional header.
All requests in the collection run the same pre-request scripts defined on the collection, but this code isn't executed when auto-fetch is used.
Describe the solution you'd like
Run pre-request scripts when Auto fetch is used.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: