From 893c445c490c10ee39151f9d8426fbedffa67f9f Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Fri, 10 Jun 2022 15:35:27 +0200 Subject: [PATCH] Fix(curriculum): external mongoose links in backend development (#46413) * remove the link * added an news article * removed the instruction link * added mongoose article * added _blank * added _blank * to not increase the other issue load part 1 * not increase the other issue load part 2 --- .../mongodb-and-mongoose/create-a-model.md | 2 +- .../perform-classic-updates-by-running-find-edit-then-save.md | 2 +- 2 files changed, 2 insertions(+), 2 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 1e7e686d23b..0d829e8f2f6 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 @@ -38,7 +38,7 @@ age : number favoriteFoods : array of strings (*) ``` -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 the [Mongoose docs](http://mongoosejs.com/docs/guide.html). +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. Now, create a model called `Person` from the `personSchema`. diff --git a/curriculum/challenges/english/05-back-end-development-and-apis/mongodb-and-mongoose/perform-classic-updates-by-running-find-edit-then-save.md b/curriculum/challenges/english/05-back-end-development-and-apis/mongodb-and-mongoose/perform-classic-updates-by-running-find-edit-then-save.md index ecbb514dac6..b25e2cf8ba8 100644 --- a/curriculum/challenges/english/05-back-end-development-and-apis/mongodb-and-mongoose/perform-classic-updates-by-running-find-edit-then-save.md +++ b/curriculum/challenges/english/05-back-end-development-and-apis/mongodb-and-mongoose/perform-classic-updates-by-running-find-edit-then-save.md @@ -14,7 +14,7 @@ In the good old days, this was what you needed to do if you wanted to edit a doc Modify the `findEditThenSave` function to find a person by `_id` (use any of the above methods) with the parameter `personId` as search key. Add `"hamburger"` to the list of the person's `favoriteFoods` (you can use `Array.push()`). Then - inside the find callback - `save()` the updated `Person`. -**Note:** This may be tricky, if in your Schema, you declared `favoriteFoods` as an Array, without specifying the type (i.e. `[String]`). In that case, `favoriteFoods` defaults to Mixed type, and you have to manually mark it as edited using `document.markModified('edited-field')`. See [Mongoose documentation](https://mongoosejs.com/docs/schematypes.html#Mixed) +**Note:** This may be tricky, if in your Schema, you declared `favoriteFoods` as an Array, without specifying the type (i.e. `[String]`). In that case, `favoriteFoods` defaults to Mixed type, and you have to manually mark it as edited using `document.markModified('edited-field')`. See our Mongoose article. # --hints--