From 8edca2efc51ab3b4e65a9e49aa54cbcbb4753795 Mon Sep 17 00:00:00 2001 From: Anonyma <44095730+Anonyma@users.noreply.github.com> Date: Thu, 3 Sep 2020 01:01:48 +0200 Subject: [PATCH] fix(curriculum): add instructions to clarify use of model.createMany (#38026) * Update create-many-records-with-model.create.english.md The previous instructions were causing confusion: https://www.freecodecamp.org/forum/t/mongodb-and-mongoose-create-many-records-with-model-create/208546 https://github.com/freeCodeCamp/freeCodeCamp/issues/36447 * Added clearer instructions * Update curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/create-many-records-with-model.create.english.md Co-authored-by: Oliver Eyton-Williams * Update curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/create-many-records-with-model.create.english.md Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> * Update curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/create-many-records-with-model.create.english.md Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> Co-authored-by: Tom <20648924+moT01@users.noreply.github.com> Co-authored-by: Oliver Eyton-Williams Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> --- .../create-many-records-with-model.create.english.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/create-many-records-with-model.create.english.md b/curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/create-many-records-with-model.create.english.md index 86463c4eb6..d6fdfea64a 100644 --- a/curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/create-many-records-with-model.create.english.md +++ b/curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/create-many-records-with-model.create.english.md @@ -13,7 +13,8 @@ Sometimes you need to create many instances of your models, e.g. when seeding a ## Instructions
-Create many people with Model.create(), using the function argument arrayOfPeople. +Modify the createManyPeople function to create many people using Model.create() with the argument arrayOfPeople. +Note: You can reuse the model you instantiated in the previous exercise.
## Tests