Use model.find() to Search Your Database

Use model.find() to Search Your Database
0

#1

I am getting this error

// running test
E11000 duplicate key error index: darkbox.people.$favoriteFoods_1 dup key: { : “pizza” }
// tests completed

This the link to the challenge and my code.

https://learn.freecodecamp.org/apis-and-microservices/mongodb-and-mongoose/use-model-find-to-search-your-database


#2

:exploding_head::exploding_head::exploding_head::exploding_head::exploding_head::exploding_head: