how to insert data into mongodb using express code example
Example: insert a data into mongo using express
var mongoose = require("mongoose");mongoose.Promise = global.Promise;mongoose.connect("mongodb://localhost:27017/node-demo");
var mongoose = require("mongoose");mongoose.Promise = global.Promise;mongoose.connect("mongodb://localhost:27017/node-demo");