From the course: GraphQL for Enterprise Developers
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Challenge: Building a subgraph - GraphQL Tutorial
From the course: GraphQL for Enterprise Developers
Challenge: Building a subgraph
- [Instructor] Now that we have our GraphQL subgraph running, we want to be able to create another one so that we can start to put these together. And that's what I'm going to challenge you to do. So here in our folder, we have our cats subgraph, but we also have one for dogs. So dogs has its own index.JS that has a schema. We have a package.JSON, where we would need to install these dependencies and we need to get this thing running. Your steps that you need to follow, you need to install dependencies. We need to import dependencies into this file. We need to write our resolver functions and then we need to start the server on port 4002. This is very similar to what we did in the previous video so if you got stuck, you can always refer back to it. And in the next video, we'll go over the solution.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.