From the course: GraphQL Essential Training

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Installing MongoDB for GraphQL

Installing MongoDB for GraphQL - GraphQL Tutorial

From the course: GraphQL Essential Training

Installing MongoDB for GraphQL

- [Instructor] Right now, our data is only saved in memory. And when we stop the server, we lose any data persistence. With our GraphQL server up and running and now with some knowledge about how it works, let's add data persistence with MongoDB. So the first thing you need to do is, install MongoDB. And the fastest way to the actual instructions is usually to do MongoDB install and the operating system you're on. So let's say for example, you're on a Mac, you would do this, and then you would go to install MongoDB Community Edition, which is the free version. And then on this same page, you have all the instructions for the different operating systems. So install on Linux, install on Windows, install with Docker if you want to do with Docker. So what you need to do is, follow these instructions. They're very well explained, so I'm not going to go through them in this video, but I want to make sure that once you have all of this installed, you can do a check to make sure that your…

Contents