Member-only story
An introduction to Apollo Federation in NestJS
A practical guide for using NestJS to create GraphQL apps with Apollo Federation on top of it

Hello and welcome! In this article we are going to talk about Apollo Federation, microservices, GraphQL and all using NestJS
In a previous article I wrote about API Gateway and REST microservices using NestJS and I decided why not write about the other way around, with GraphQL and Apollo Federation
This is an introductory topic and you definitely can use Apollo Federation without using NestJS… In any case by the end of the article you should be comfortable on using NestJS to manage both GraphQL and your Apollo Federation as a Gateway.
Before we start…
This article might be slightly more advanced for who never worked with NestJS. If you are new to NestJS and GraphQL I would recommend to read my previous article first:
That said, basic concepts you might need to follow up this article are:
- Basic Typescript knowledge