"Chain Search Query Helpers to Narrow Search Results" Challenge

Tell us what’s happening:
To complete the challenge I am using the following query which even giving me the output that the challenge is asking, but the thing is this answer is not getting expected and I am not sure what am I doing wrong here.

Here is the code:

Person.find({favoriteFoods: foodToSearch})
  .sort({name: 'asc'})
  .exec((err, data) => {
    if(err) return console.log(err);

Your project link(s)

solution: boilerplate-mongomongoose-1 - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36 Edg/101.0.1210.39

Challenge: Chain Search Query Helpers to Narrow Search Results

Link to the challenge:

I think it was a random error server sided, it resolved on its own. Able to submit the same link as before.

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