showing results for - "not fetch data from mongoose"
Giulio
20 Jul 2020
1//All objects add 's' behind => 'student' to 'students' 
2
3const mongoose = require("mongoose");
4
5const Schema = mongoose.Schema;
6
7const StudentSchema = new Schema({
8  name: String,
9  dob: Date,
10  mobile: String,
11  address: String,
12});
13
14module.exports = mongoose.model("students", StudentSchema);
15