How can I create a preflight script?

Have more questions? Submit a request

To create a preflight script:

  1. Open Apollo Studio and then open the Explorer for the graph and variant you want to create a script for.

  2. Open the Explorer's Settings tab and scroll down to the Preflight script section:

preflight-script.jpg

  1. Click Add script. The following dialog appears:

preflight-script-edit.jpg

  1. Click Show snippets to display a list of common helpful actions you can perform from your preflight script (such as sending HTTP requests and interacting with Explorer environment variables).

  2. Develop your script in the Script editor panel. As you develop, you can click Test script to test its execution. Console messages are printed in the Console output panel.

  3. When your script is ready, click Save. Studio stores your script.

You can find more information on preflight scripts here.

Note that preflight scripts are not available in Apollo Sandbox

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.