Connectors Development Workflow and Tooling
Fit Connectors tooling together into a complete workflow
Apollo provides a complete toolkit for building with Apollo Connectors. This article is an overview of those tools and the recommended workflow to get the most out of them.
Setup
Two tools require installation, and should be installed in order:
The Rover CLI
An IDE extension
Some IDE extensions use Rover as a language server. Consult the IDE extension article for setup instructions.
Connectors development workflow
The general workflow for building Connectors is:
Edit your schema in your IDE
Test the changes in Apollo Sandbox
Use the Connectors Debugger in Sandbox to troubleshoot any issues
Optionally, the Connectors Mapping Playground can help you get started or refine complex Connectors.
Step 1. Editing in your IDE
The best way to author Connectors is using one of Apollo's official IDE extensions. They provide real-time basic validations As you work and enhanced validations on-save. These validations can catch many issues early on.
Step 2. Testing with Sandbox
After edits, you should test changes locally to make sure everything is working as expected.
You can do this by running rover dev
in your terminal.
This command starts a local instance of the GraphOS Router with recommended development settings, including Apollo Sandbox (at http://localhost:4000
, by default).
In the Sandbox, you can send GraphQL operations to the router and check for the expected responses.
Step 3. Troubleshooting
If anything is amiss, you can open the Connectors Debugger section to inspect the HTTP requests, responses, and any errors encountered while processing them.
Refer to the troubleshooting guide for additional debugging methods and common errors.
The Connectors Mapping Playground
The Connectors Mapping Playground is a standalone website that allows you to experiment with Connectors and see results without actually running requests. Using the playground can be quicker than cycling between your editor and Apollo Sandbox for complex Connectors. Learn more about the playground.