Member-only story
How To Integrate an Apollo GraphQL Server with MongoDB and TypeScript Code Generator (Part 2)
The second part of the Apollo GraphQL Server with TypeScript Series

This is Part 2 of the Apollo GraphQL: How-To series:
- Part 1: How to build an Apollo GraphQL server with TypeScript and Webpack Hot Module Replacement
- Part 2: How to Integrate an Apollo GraphQL Server with MongoDB and TypeScript Code Generator
- …and more coming soon!
Let’s integrate Apollo GraphQL Server with MongoDB and TypeScript Codegen!
In my last piece, I demonstrated how to build a “Hello Word” Apollo Server with a set of tools and design concepts I’ve been using in my production apps. In this post, we’re going to carry on with this topic to configure the Apollo Server to communicate with MongoDB (or any database of your choice) and leverage the GraphQL code generator to improve development workflows.
Without further ado, let’s begin!
1. Summon the Greek God
In this post, we will be using the “Hello World” Apollo Server from my last piece as the starting point. You may clone my repository from GitHub, or refer to my last post if you need detailed…