Set up your graph
Transform your REST APIs into a graph with GraphOS
Hello! 👋 These guides teach you to build a graph that incorporates a fictional Ecommerce REST API. A graph lets clients fetch exactly what they need in one request, even across multiple endpoints.
Let's start building!
Sign into GraphOS
Sign into GraphOS Studio. If you don't have an account yet, sign up for a Free plan at studio.apollographql.com.
Create a graph
When first accessing Studio, you'll see this screen. Follow its instructions to install Rover and authenticate it with GraphOS.
Under Select your starting point, click Connect a REST API.
Enter a graph title and graph ID and keep the defaults for the other form elements. Then click Create and continue.
Next, follow the instructions to set up your local development environment. You should end up with a
supergraph.yaml
andproducts.graphql
file in your local project.File overview- The
supergraph.yaml
specifies which Apollo Federation version to use and configures your subgraphs, the different services that make up your supergraph. - The
products.graphql
contains a GraphQL schema and defines your graph's structure, types, and capabilities. The schema is where you define Connectors and where this guide spends most of its time.
Once
rover dev
is running, your terminal should look something like this:terminalsupergraph config loaded successfully warning: Do not run this command in production! It is intended for local development only. ==> Watching products.graphql for changes WARN: Connector debugging is enabled, this may expose sensitive information. ==> your supergraph is running! head to http://localhost:4000 to query your supergraph successfully composed with version 2.10.0
The last step in the modal brings you back to this quickstart guide.
- The
🎉 Congratulations—you've successfully started a local development session where you can explore, develop, and publish updates to your graph!
Next steps
Here's where the fun begins. Jump over to the next guide to start developing your graph.