Federation with Apollo Gateway
Federation allows you to split your unified schema in multiple pieces, managed by separate services. This has benefits for scaling and maintainability.
- Run
npm run start-registry
- Run
npm run start-services
- Run
npm run start-gateway
- Visit playground
http://localhost:4000/playground
Try
{
topProducts {
name
inStock
shippingEstimate
reviews {
id
author {
name
}
product {
name
}
}
}
}