Chain Search Query Helpers to Narrow Search Results Problem

Tell us what’s happening:
I can’t pass the Solution Link test. I am losing my mind. It has been 2 hours!

Your project link(s)

solution:https://replit.com/@horzu/boilerplate-mongomongoose-3#myApp.js

This is my code and I think it’s correct. I have checked hint, youtube, google etc. but I couldn’t find the problem. Please help me!

const queryChain = (done) => {
const foodToSearch = “burrito”;

Person.find({ favoriteFoods: foodToSearch})
.sort({ name: 1 })
.limit(2)
.select({age: 0})
.exec((error, people) => {
if(error){
console.log(error)
}else{
done(null, people)
}
});
};

Your browser information:

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

Challenge: Chain Search Query Helpers to Narrow Search Results

Link to the challenge:

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