const MongoClient = require('mongodb').MongoClient; const uri = "mongodb+srv://newuser31:@cluster0-9ph9m.mongodb.net/?retryWrites=true&w=majority"; const client = new MongoClient(uri, { useNewUrlParser: true }); client.connect(err => { const collection = client.db("test").collection("devices"); // perform actions on the collection object client.close(); });
rishabh1507 / e_commerce_web Goto Github PK
View Code? Open in Web Editor NEWReact Amazon Clone