From 7453131461f5073d9160bbc1402bcb0e052579c0 Mon Sep 17 00:00:00 2001 From: Ezekiel Oladejo Date: Mon, 27 Jan 2020 00:31:51 +0100 Subject: [PATCH] Apply proper formatting on Note paragraph (#38120) --- ...rm-classic-updates-by-running-find-edit-then-save.english.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/perform-classic-updates-by-running-find-edit-then-save.english.md b/curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/perform-classic-updates-by-running-find-edit-then-save.english.md index 4f6eff562e..256be77225 100644 --- a/curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/perform-classic-updates-by-running-find-edit-then-save.english.md +++ b/curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/perform-classic-updates-by-running-find-edit-then-save.english.md @@ -16,7 +16,7 @@ In the good old days this was what you needed to do if you wanted to edit a docu 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 casefavoriteFoods 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 [Mongoose documentation](https://mongoosejs.com/docs/schematypes.html#Mixed)