MongoDB and Mongoose - Chain Search Query Helpers to Narrow Search Results

Tell us what’s happening:
I have been following the hints given, but I’m still getting failed test results.
Here’s my code so far,

const queryChain = function(done) {
  const foodToSearch = "burrito";
  Person.find({ age: 55 })
    .sort({ name: 1 })
    .limit(5)
    .select({ favoriteFoods: 0 })
    .exec(function(err, people) {
      if(err) return console.log(err);
      done(null, people);
    });
};

Your project link(s)

solution: boilerplate-mongomongoose - Replit

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0

Challenge: MongoDB and Mongoose - 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.