Answers for "not fetch data from mongoose"

1

not fetch data from mongoose

//All objects add 's' behind => 'student' to '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("students", StudentSchema);
Posted by: Guest on April-28-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language