Insert a document using Node.js and mongoDB SupposeĀ  you have a mongoDB database for courses and you want to insert a record into the database using Node.js. First step is to install mongoDB driver for Node.jsĀ  If it is not already installed. Please open command line and run following command. > npm install mongodb This