Tell us what’s happening:
Hi!
Why is my test not passing?
This is my code:
const Schema = mongoose.Schema;
const personSchema = new Schema({
name: {type: String, required: true},
age: Number,
favoriteFood: [String]
});
const Person = mongoose.model(“Person”, personSchema);
Your project link(s)
solution: boilerplate-mongomongoose-3 - Node.js Repl - Replit
Your browser information:
User Agent is: Mozilla/5.0 (Linux; Android 11; TECNO LC7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Mobile Safari/537.36
Challenge: MongoDB and Mongoose - Create a Model
Link to the challenge: