diff --git a/curriculum/challenges/english/05-back-end-development-and-apis/mongodb-and-mongoose/create-a-model.md b/curriculum/challenges/english/05-back-end-development-and-apis/mongodb-and-mongoose/create-a-model.md index 9f2c19444e2..e780792d7fe 100644 --- a/curriculum/challenges/english/05-back-end-development-and-apis/mongodb-and-mongoose/create-a-model.md +++ b/curriculum/challenges/english/05-back-end-development-and-apis/mongodb-and-mongoose/create-a-model.md @@ -28,15 +28,11 @@ const someFunc = function(done) { # --instructions-- -Create a person schema called `personSchema` having this prototype: +Create a person schema called `personSchema` with the following shape: -```markup -- Person Prototype - --------------------- -name : string [required] -age : number -favoriteFoods : array of strings (*) -``` +* A required `name` field of type `String` +* An `age` field of type `Number` +* A `favouriteFoods` field of type `[String]` Use the Mongoose basic schema types. If you want you can also add more fields, use simple validators like required or unique, and set default values. See our Mongoose article.