how to setup object id statically using mongoose code example
Example: schema mongoose
const fruitSchema = new mongoose.Schema ({
name: {
type: String
},
rating: {
type: Number,
min: 1,
max: 10
},
review: String
});
const fruitSchema = new mongoose.Schema ({
name: {
type: String
},
rating: {
type: Number,
min: 1,
max: 10
},
review: String
});