What’s wrong with my code? it looks right and I checked the hint and it looks basically the same.
myApp.js:
require('dotenv').config();
const mongoose = require('mongoose');
const uri = process.env.MONGO_URI;
mongoose.connect(uri, { useNewUrlParser: true, useUnifiedTopology: true });
const personSchema = new mongoose.Schema({
name : { type: String, required: true },
age : Number,
favoriteFoods : [String]
});
let Person = mongoose.model('Person', personSchema);
module.exports = Person;