Better Programming

Advice for programmers.

Follow publication

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

Derek Fong
Better Programming
Published in
23 min readDec 8, 2019
The Hitachi Tree (Image Source: Derek Fong)

This is Part 2 of the Apollo GraphQL: How-To series:

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…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Derek Fong
Derek Fong

Written by Derek Fong

React • Angular • GraphQL • TensorFlow • .NET

Responses (3)

Write a response