Node.jsConnect to Mongodb


Introduction

MongoDB is a free and open-source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas.

For more details go to https://www.mongodb.com/

Syntax

  • MongoClient.connect('mongodb://127.0.0.1:27017/crud',function (err,db) {//do womething here});