What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-13 22:24:17
find all mongoose
//create model students const mongoose = require("mongoose"); const Schema = mongoose.Schema; const StudentSchema = new Schema({ name: String, dob: Date, mobile: String, address: String, }); module.exports = mongoose.model("stud... Add solution -
Javascript 2021-11-10 22:11:12
show data of mongoose in html page using ejs
app.get('/profileface', isLoggedIn, function(req, res) { // mongoose operations are asynchronous, so you need to wait PracticeModel.find({}, function(err, data) { // note that data is an array of objects, not a single object! res.... Add solution