Module 4 Introduction
Introduction to Module 4.0.
Get the project source code below, and follow along with the lesson material.
Download Project Source CodeTo set up the project on your local machine, please follow the directions provided in the README.md
file. If you run into any issues with running the project source code, then feel free to reach out to the author in the course's Discord channel.
This lesson preview is part of the TinyHouse: A Fullstack React Masterclass with TypeScript and GraphQL course and can be unlocked immediately with a single-time purchase. Already have access to this course? Log in here.
Get unlimited access to TinyHouse: A Fullstack React Masterclass with TypeScript and GraphQL with a single-time purchase.
[00:00 - 00:07] We just created a GraphQL API with the help of a poll. However, as you may have noticed, we haven't been able to persist any of the changes we made to our data.
[00:08 - 00:53] That's right, and that's why in this module, we'll use a database to contain any data we want persisted. We're going to set up this database with MongoDB, and we're going to use a database as a service known as Mongo apps. In this module, we'll introduce MongoDB, set up a new database cluster with Mongo Alice, connect our server with our database using the official node Mongo driver. Introduce TypeScript generics to enforce types to our database, create a simple script to help seed our database with some initial data, have our resolver functions process data from our database, And finally, we'll modularize our resolvers.