MongoDB and Mongoose - Create Many Records with model.create()

Tell us what’s happening:
i have written the code and its not running , again i went in for a hint copied and pasted the hint and it still doesn’t work

Your project link(s)

okay , So i have been able to fix it ,` Person.create(arrayOfPeople, (err, people)=> {
if (err) return console.log(err);
done(null, people);

` and this is the answer , i commented “createManyPeople” which had a function and at the same time calling passing arrayOfPeople in the Person.create() which won’t work .


Same thing. I did comment out previous challenge (number 3) and now my code is passing

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.