Create a Model - MongoDB and Mongoose

the test show me “Creating an instance from a mongoose schema should succeed”, what I do???

const mongoose = require('mongoose');

let personSchema = new mongoose.Schema({
  name: { type: String, required: true },
  age: Number,
  favoriteFoods: [String]
});

let Person = mongoose.model('Person', personSchema);

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 Edg/88.0.705.74.

Challenge: Create a Model

Link to the challenge:

Hello there,

Would you mind providing a link to your project code? It is difficult to tell what is happening without it.

https://github.com/cahangeorge/mongoDB-and-mongoose

someone to help me???

The link you provided leads to a 404 (page does not exist).

this is the link for repl.it

Thank you, for sharing that. I just started the app, and submitted the link, and it passed.

Are you able to pass, now?

yes, thank you very much

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