Hey Every one,
I’ve encountered a weird error in the MongoDB and Mongoose section of API and Microservices.
Excercise: Create and Save a Record of a Model
My Code Snippet:
const createAndSavePerson = (done) => {
let me = new Person({name: 'random guy', age: 20, favoriteFoods: ['Tacos', 'Cheetos']});
me.save((err, data) => {
if (err) return done(err);
return done(null,data);
});
};
My Error:
I’ve already completed all the other problems and even completed all the projects pretty quick as I am fluent in Node js.
I also tried to debug fcc’s test case code but no solution.
Thank you for your help