# Voyage II: Federating the Monolith

**URL:** <https://community.apollographql.com/t/voyage-ii-federating-the-monolith/7158>\
**Category:** Other Apollo Topics\
**Tags:** odyssey\
**Created:** [January 24, 2024, 4:40pm UTC](https://community.apollographql.com/t/voyage-ii-federating-the-monolith/7158 "2024-01-24T16:40:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mshah100](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/mshah100/32/4841_2.png) [@mshah100](https://community.apollographql.com/u/mshah100)\
**Post date:** [January 24, 2024, 4:40pm UTC](https://community.apollographql.com/t/voyage-ii-federating-the-monolith/7158/1 "2024-01-24T16:40:42Z")

</div>

I am working on startng the router and it is giving me an error:

Running the command gives me the error:  
APOLLO\_KEY=service:airlock-dwih0w:e8L2UitvsBgXjgBz\_TZTgA APOLLO\_GRAPH\_REF=airlock-dwih0w@current  
./router --config config.yaml  
Apollo Router v1.38.0 // (c) Apollo Graph, Inc. // Licensed as ELv2 ([https://go.apollo.dev/elv2](https://go.apollo.dev/elv2))

⚠ The Apollo Router requires a composed supergraph schema at startup. ⚠

👉 DO ONE:

- Pass a local schema file with the ‘–supergraph’ option:$ ./router --supergraph \<file\_path\>
- Fetch a registered schema from GraphOS by setting  
these environment variables:$ APOLLO\_KEY=“…” APOLLO\_GRAPH\_REF=“…” ./routerFor details, see the Apollo docs:  
[https://www.apollographql.com/docs/federation/managed-federation/setup](https://www.apollographql.com/docs/federation/managed-federation/setup)

🔬 TESTING THINGS OUT?

1. Download an example supergraph schema with Apollo-hosted subgraphs:

```auto
$ curl -L https://supergraph.demo.starstuff.dev/ > starstuff.graphql

```

1. Run the Apollo Router in development mode with the supergraph schema:

```auto
$ ./router --dev --supergraph starstuff.graphql

```

How do I get around this? Do I specify the location of the schema file ?

---

<div class="post-metadata">

**Author:** ![Michelle\_Mabuyo](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/michelle_mabuyo/32/80_2.png) [@Michelle\_Mabuyo](https://community.apollographql.com/u/Michelle_Mabuyo)\
**Post date:** [February 1, 2024, 10:03pm UTC](https://community.apollographql.com/t/voyage-ii-federating-the-monolith/7158/2 "2024-02-01T22:03:26Z")

</div>

Hey there @mshah100 - confirming that you’ve gotten this fixed through our in-lesson comments?

---

<div class="post-metadata">

**Author:** ![Michelle\_Mabuyo](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/michelle_mabuyo/32/80_2.png) [@Michelle\_Mabuyo](https://community.apollographql.com/u/Michelle_Mabuyo)\
**Post date:** [January 31, 2025, 3:17pm UTC](https://community.apollographql.com/t/voyage-ii-federating-the-monolith/7158/3 "2025-01-31T15:17:39Z")

</div>


