From fdabc2f66fbb2601f75e6df7f1594dbd358c3fa9 Mon Sep 17 00:00:00 2001 From: John <47208192+John-I-Am@users.noreply.github.com> Date: Tue, 28 Feb 2023 17:45:47 +1300 Subject: [PATCH] fix(cirriculum): reword exercise instructions to clarify required schema (#49542) * change wording to highlight the required fields and its corresponding types. --- .../mongodb-and-mongoose/create-a-model.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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.