bruno
bruno copied to clipboard
[Feature Request] Run pre-request and post-response actions when fetching GQL schema
Why
In my environment, I need to digitally sign all request payloads, including GQL introspections. Since it's a very custom authentication scheme that is not in wide use, I thought it would be good to use a pre-request script for this. But I discovered that GQL schema fetching doesn't invoke pre-request scripts.
Although my use case doesn't call for it, I know Bruno has pre-request and post-response vars and scripts, so it seems like it would be good to also run those, and treat these requests just like any other request. Can anyone think of downsides to doing that?
Related
Postman's GQL schema auto-fetch does not currently support running Pre-request scripts either, but people clearly want it:
- https://github.com/postmanlabs/postman-app-support/issues/10957
I'm in the same boat! I handle authentication with a pre-request script, which isn't called when loading a GraphQL schema through introspection. I see there was a PR to resolve this issue, but it still doesn't seem to be working for me 🤔
I agree that this does not seem to work.