From this point on, you can copy / paste the code in each example into the app.js (or you can scroll to the bottom of this page and paste the entire code listing in one step). MongoDB is a database. This is the place where you store information for your web websitessimple list application that allows you to keep track of things within a list (like a Todo List for example).Now, run node server.js in your command line and you should see the statement you logged For example, if the MongoDB Node.js driver hadnt already been included then it could be added with npm install --save mongodb this would install the package as well as saving the dependency in package.json. Node.js Reference. Built-in Modules.MongoDB will create the database if it does not exist, and make a connection to it. Example. Bruno Mota introduces the concepts behind GraphQL, and shows how to create an API server using Node.