Overview
Orchestrating data from multiple REST APIs into a unified GraphQL layer doesn't have to mean rewriting everything. Let's use Apollo Connectors to skip the resolver boilerplate and get straight to building. In this workshop, you’ll learn how to declaratively connect your REST endpoints to your graph using just configuration in the schema. We’ll walk through how to fetch and combine data, pass arguments, troubleshoot your work, and more—all using tools built right into Apollo.
What you'll do
- Connect REST API endpoints to a GraphQL schema using Connector directives
- Debug Connector mappings using Sandbox Explorer and the Connectors Mapping Playground
Who this workshop is for
- Anyone looking to get started with graph-based orchestration. You don't need to know any particular programming language!
Pre-requisites
- Basic experience with APIs.
- (Recommended) Some familiarity with GraphQL SDL.
Let's get set up!
1) Verify your Apollo GraphOS account
2) Install and authenticate Rover
You need at least Rover version v0.35.0 to complete this course.
3) Start a local project
(Optional) Set up your code environment
📖 How to use this Odyssey companion
You can use this companion as a reference throughout the workshop. Here you'll find instructions, code snippets and exercise solutions that we'll be going through in the workshop.
Follow-along: Lessons starting with Follow-along are designed for you to follow along with the instructor! Do what they're doing, but on your own machines.
Exercise: Lessons starting with Exercise are designed to be an individual exercise for you to try your best to solve on your own! If you need help, you can pair with someone beside you, flag down a mentor or consult the solution in that same lesson.
Stuck?
Refer to the GitHub repository and select a commit to get caught up.
Helpful links
Workshop goals
By the end of our time together, you'll be able to:
- Use connectors in a GraphQL schema
- Learn how to debug connector mappings
- Understand and apply the developer workflow for using connectors