for this challenge: https://learn.freecodecamp.org/apis-and-microservices/mongodb-and-mongoose/create-many-records-with-model-create/
I got every thing done using this code and i can find the docs in my database but it didn’t pass>
whats wrong???
const arr = [
{name: 'John', age: 23, favoriteFoods:['Burger', 'Pizza']},
{name: 'Howard', age: 33, favoriteFoods:['Pasta', 'Sandwich']}];
let createManyPeople = Person.insertMany(arr)
.then(function (docs) {
console.log(docs);
})
.catch(function (err) {
console.log(err);
});