Skip to content

setchy/apollo-server-4-mocked-federation

Repository files navigation

Apollo Server 4 Mocked Federation

See setchy/apollo-server-3-mocked-federation for an Apollo Server 3.x example

This repository contains a example of how to mock a managed federation Supergraph schema with apollo-gateway powered by apollo-server version 4.x.

Note: Since we are using managed federation, the mocked schema is the Supergraph schema from your Apollo Studio Schema Registry.

Assumptions

  • You already have an Apollo Studio organization / account
  • At least one subgraph has been published to the schema registry for the below mentioned APOLLO_KEY and APOLLO_GRAPH_REF pair

Getting started

  1. cp .env.template .env
  2. Edit .env and set a valid APOLLO_KEY and APOLLO_GRAPH_REF pair
  3. Run npm install && npm run dev

About

An example of using Apollo Server 4 with a mock managed federation gateway

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published