Do you understand the reason why this is not working?
const queryChain = (done) => {
const foodToSearch = "burrito";
Person.find({favoriteFoods: foodToSearch}).sort({name:"asc"}).limit(2).select({age:0}).exec(function(err,data){
if(err){
return done(err)
}
done(null,data)
})
}
This is the link here: boilerplate-mongomongoose - Replit