bruno icon indicating copy to clipboard operation
bruno copied to clipboard

[Feature Request] Run pre-request and post-response actions when fetching GQL schema

Open cwilper opened this issue 10 months ago • 3 comments

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

cwilper avatar Oct 20 '23 17:10 cwilper

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 🤔

MatisseHack avatar Mar 19 '24 04:03 MatisseHack

I agree that this does not seem to work.

jwsloan avatar May 06 '24 21:05 jwsloan