Tell us what’s happening:
Your code so far
const personSchema = new mongoose.Schema({
name: {
type: String,
required: true
},
age: {
type: Number
},
favoriteFoods: [String]
});
const Person = mongoose.model('Person', personSchema);
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36
.
Challenge: Create a Model
Link to the challenge:
STUCK FOR AN HOUR PLEASE HELP