Challenge Create a Model help

My code is the following and I can’t get it to work, I already checked that it connects to the database without problems. What can be? Thank you very much for the help!

var mongoose = require(‘mongoose’);
const Schema = mongoose.Schema;

mongoose.connect(process.env.MONGO_URI, { useNewUrlParser: true, useUnifiedTopology: true });;

const personSchema = new Schema({
name: { type: String, required: true },
age: Number,
favoriteFoods: [String]

const Person = mongoose.model(“Person”, personSchema);

Challenge: Create a Model

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.