Preflight Scripts in the Laboratory

Dimitri Postolov

We’ve added Preflight Scripts our GraphQL IDE - Laboratory!

Preflight Scripts is a feature that enables you to automatically execute custom code before each GraphQL request is made. They’re especially useful for handling authentication flows like OAuth, where you may need to claim or refresh an access token, validate credentials, or set up custom headers - all before the request is sent.

Demo of Preflight Scripts

Check out the documentation on Preflight Scripts for information on how to configure, edit, and use them.